- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for CheckValid (0.12 sec)
-
tests/integration/security/authz_test.go
b.from.CallOrFail(t, b.opts) } func (b *authzTest) BuildAndRun(t framework.TestContext) { t.Helper() b.Build(t).Run(t) } type authzTests []authzTest func (tsts authzTests) checkValid() { path := tsts[0].opts.HTTP.Path allow := tsts[0].allow prefix := tsts[0].prefix for _, tst := range tsts { if tst.opts.HTTP.Path != path { panic("authz tests have different paths") }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 08 23:36:51 UTC 2024 - 50.1K bytes - Viewed (0) -
src/runtime/pprof/pprof_test.go
var w bytes.Buffer Lookup("block").WriteTo(&w, 0) p, err := profile.Parse(&w) if err != nil { t.Fatalf("failed to parse profile: %v", err) } t.Logf("parsed proto: %s", p) if err := p.CheckValid(); err != nil { t.Fatalf("invalid profile: %v", err) } stks := stacks(p) for _, test := range tests { if !containsStack(stks, test.stk) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 68.8K bytes - Viewed (0) -
src/encoding/json/decode_test.go
func TestUnmarshal(t *testing.T) { for _, tt := range unmarshalTests { t.Run(tt.Name, func(t *testing.T) { in := []byte(tt.in) var scan scanner if err := checkValid(in, &scan); err != nil { if !equalError(err, tt.err) { t.Fatalf("%s: checkValid error: %#v", tt.Where, err) } } if tt.ptr == nil { return } typ := reflect.TypeOf(tt.ptr)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 16:40:14 UTC 2024 - 67.6K bytes - Viewed (0)