Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add matching checker #20

Merged
merged 1 commit into from
Apr 12, 2023
Merged

Add matching checker #20

merged 1 commit into from
Apr 12, 2023

Conversation

vearutop
Copy link
Member

No description provided.

@github-actions
Copy link

Lines Of Code

Language Files Lines Code Comments Blanks Complexity Bytes
Go 5 (+1) 819 (+101) 565 (+64) 80 (+16) 174 (+21) 160 (+11) 19.7K (+3.2K)
Go (test) 6 (+1) 623 (+42) 527 (+36) 22 74 (+6) 2 16K (+921B)

@github-actions
Copy link

Go API Changes

# github.com/swaggest/assertjson
## compatible changes
Comparer.FailMismatch: added
Comparer.FailMismatchMarshal: added
Comparer.Matches: added
Comparer.MatchesMarshal: added
FailMismatch: added
FailMismatchMarshal: added
Matches: added
MatchesMarshal: added

# summary
Inferred base version: v1.7.0
Suggested version: v1.8.0

@github-actions
Copy link

Unit Test Coverage

total: (statements) 91.8%
changed lines: (statements) 97.7%

Coverage of changed lines
File Function Coverage
Total 97.7%
equal.go 100.0%
equal.go:125 filterDeltas 100.0%
equal.go:244 FailNotEqual 100.0%
equal.go:248 fail 100.0%
matches.go 96.6%
matches.go:11 Matches 100.0%
matches.go:30 MatchesMarshal 100.0%
matches.go:47 FailMismatch 100.0%
matches.go:53 FailMismatchMarshal 100.0%
matches.go:70 FailMismatch 100.0%
matches.go:76 Matches 100.0%
matches.go:86 MatchesMarshal 100.0%
matches.go:59 FailMismatchMarshal 83.3%
Coverage diff with base branch
File Function Base Coverage Current Coverage
Total 91.1% 91.8% (+0.7%)
github.com/swaggest/assertjson/equal.go FailNotEqual 86.7% 100.0% (+13.3%)
github.com/swaggest/assertjson/equal.go fail no function 86.7%
github.com/swaggest/assertjson/matches.go FailMismatch no function 100.0%
github.com/swaggest/assertjson/matches.go FailMismatchMarshal no function 75.0%
github.com/swaggest/assertjson/matches.go Matches no function 100.0%
github.com/swaggest/assertjson/matches.go MatchesMarshal no function 100.0%

@vearutop vearutop merged commit b42051d into master Apr 12, 2023
6 checks passed
@vearutop vearutop deleted the json-match branch April 12, 2023 22:27
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.

None yet

1 participant