(t *testing.T, json string, expect bool)
| 1016 | ` |
| 1017 | |
| 1018 | func testvalid(t *testing.T, json string, expect bool) { |
| 1019 | t.Helper() |
| 1020 | _, ok := validpayload([]byte(json), 0) |
| 1021 | if ok != expect { |
| 1022 | t.Fatal("mismatch") |
| 1023 | } |
| 1024 | } |
| 1025 | |
| 1026 | func TestValidBasic(t *testing.T) { |
| 1027 | testvalid(t, "0", true) |
no test coverage detected
searching dependent graphs…