Skip to content

Commit

Permalink
chore: remove snapshots from datasource tests (#1507)
Browse files Browse the repository at this point in the history
Redid tests that used snapshots to mostly use `cmp.Diff` instead, for
easier migration into osv-scalibr
  • Loading branch information
michaelkedar authored Jan 19, 2025
1 parent 8500e96 commit 6874aa6
Show file tree
Hide file tree
Showing 7 changed files with 214 additions and 422 deletions.
71 changes: 0 additions & 71 deletions internal/datasource/__snapshots__/maven_settings_test.snap

This file was deleted.

94 changes: 0 additions & 94 deletions internal/datasource/__snapshots__/npm_registry_test.snap

This file was deleted.

208 changes: 0 additions & 208 deletions internal/datasource/__snapshots__/npmrc_test.snap

This file was deleted.

2 changes: 1 addition & 1 deletion internal/datasource/http_auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type HTTPAuthentication struct {
// Bearer
BearerToken string
// Digest
CnonceFunc func() string `json:"-"` // Function used to generate cnonce string for Digest. OK to leave unassigned. Mostly for use in tests.
CnonceFunc func() string // Function used to generate cnonce string for Digest. OK to leave unassigned. Mostly for use in tests.

lastUsed atomic.Value // The last-used authentication method - used when AlwaysAuth is false to automatically send Basic auth.
}
Expand Down
Loading

0 comments on commit 6874aa6

Please sign in to comment.