test: add network resolver tests for Go, JavaScript, and Rust#23
Open
Sandipmandal25 wants to merge 1 commit intoSBOMit:masterfrom
Open
test: add network resolver tests for Go, JavaScript, and Rust#23Sandipmandal25 wants to merge 1 commit intoSBOMit:masterfrom
Sandipmandal25 wants to merge 1 commit intoSBOMit:masterfrom
Conversation
Signed-off-by: Sandipmandal25 <sandipmandal02.sm@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds unit tests for the remaining network ecosystem resolvers — Go, JavaScript, and Rust. PR #9 introduced
network_test.go(chain routing) andpython_test.go; this PR completes coverage across all supported ecosystems.Fixes #7
Changes Made
pkg/resolver/network/go_test.go11 tests covering proxy.golang.org zip/mod/info parsing, uppercase module path decoding (
!burnt!sushi → BurntSushi), storage.googleapis.com Referer forwarding, 404 skip handling, zero status code handling, body hash recording, and zip+mod deduplicationpkg/resolver/network/javascript_test.go10 tests covering non-scoped and scoped packages (
@babel/core), tarball downloads, metadata endpoints (/pkg/version), pre-release versions (5.0.0-beta.1), package name normalization, 404 skip handling, body hash recording, and tgz+metadata deduplicationpkg/resolver/network/rust_test.go10 tests covering crate file paths (
/crates/{name}/{name}-{version}.crate), API download endpoints (/api/v1/crates/{name}/{version}/download), hyphenated (serde-derive) and underscore (serde_json) crate names, pre-release versions across both URL formats, 404 skip handling, body hash recording, and crate+API deduplicationTesting
go test ./pkg/resolver/network/... -v