* github.com/mailru/easyjson */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004: N/A Verifies: STK-REQ-005 MCDC STK-REQ-005: N/A Verifies: STK-REQ-007 MCDC STK-REQ-007: N/A reqproof:proptest:skip performance benchmark;
(b *testing.B)
| 501 | // MCDC STK-REQ-007: N/A |
| 502 | // reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-deterministic and not comparable to an independent reference |
| 503 | func BenchmarkEasyJsonMedium(b *testing.B) { |
| 504 | for i := 0; i < b.N; i++ { |
| 505 | lexer := &jlexer.Lexer{Data: mediumFixture} |
| 506 | data := new(MediumPayload) |
| 507 | data.UnmarshalEasyJSON(lexer) |
| 508 | |
| 509 | nothing(data.Person.Name.FullName, data.Person.Github.Followers, data.Company) |
| 510 | |
| 511 | for _, el := range data.Person.Gravatar.Avatars { |
| 512 | nothing(el.Url) |
| 513 | } |
| 514 | } |
| 515 | } |
nothing calls this directly
no test coverage detected