Skip to content

test: Cover CodeResult JSON marshaling#4257

Open
Haihan-Jiang wants to merge 1 commit into
google:masterfrom
Haihan-Jiang:test-code-result-marshal
Open

test: Cover CodeResult JSON marshaling#4257
Haihan-Jiang wants to merge 1 commit into
google:masterfrom
Haihan-Jiang:test-code-result-marshal

Conversation

@Haihan-Jiang
Copy link
Copy Markdown

Adds standalone JSON marshal coverage for CodeResult.

CodeSearchResult already had marshal coverage for the outer response shape. This adds direct coverage for the exported result type and its nested repository/text match fields.

Tests:

  • gofmt -w github/search_test.go
  • go test ./github -run 'TestCode(Result|SearchResult)_Marshal'
  • go test ./github
  • git diff --check

Refs #55.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant