- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 69 for tc (0.02 sec)
-
src/os/user/listgroups_unix_test.go
func TestListGroups(t *testing.T) { for _, tc := range listGroupsTests { u := &User{Username: tc.user, Gid: tc.gid} got, err := listGroupsFromReader(u, strings.NewReader(tc.in)) if tc.err { if err == nil { t.Errorf("listGroups(%q): got nil; want error", tc.user) } continue // no more checks } if err != nil { t.Errorf("listGroups(%q): got %v error, want nil", tc.user, err) continue // no more checks }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 3K bytes - Viewed (0) -
src/crypto/tls/ech_test.go
} { b, err := hex.DecodeString(tc.list) if err != nil { t.Fatal(err) } configs, err := parseECHConfigList(b) if err != nil { t.Fatal(err) } if len(configs) != tc.numConfigs { t.Fatalf("unexpected number of configs parsed: got %d want %d", len(configs), tc.numConfigs) } } } func TestSkipBadConfigs(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 2K bytes - Viewed (0) -
src/slices/iter_test.go
n: 2, chunks: [][]int{{1, 2}, {3, 4}, {5}}, }, } for _, tc := range cases { t.Run(tc.name, func(t *testing.T) { var chunks [][]int for c := range Chunk(tc.s, tc.n) { chunks = append(chunks, c) } if !chunkEqual(chunks, tc.chunks) { t.Errorf("Chunk(%v, %d) = %v, want %v", tc.s, tc.n, chunks, tc.chunks) } if len(chunks) == 0 { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 10 17:28:50 UTC 2024 - 5.7K bytes - Viewed (0) -
cmd/kubeadm/app/apis/kubeadm/types_test.go
cfg: &ClusterConfiguration{}, expectedResult: "", }, } for _, tc := range tests { t.Run(tc.name, func(t *testing.T) { if result := tc.cfg.EncryptionAlgorithmType(); result != tc.expectedResult { t.Errorf("expected result: %s, got: %s", tc.expectedResult, result) } }) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 09:39:24 UTC 2024 - 1.9K bytes - Viewed (0) -
pilot/pkg/security/authz/matcher/template_test.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Apr 20 01:58:53 UTC 2024 - 1.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/openapi/compiling_test.go
expectEvalResult: false, // 3 > 2 }, { expression: "foo.confusion == bar.confusion", expectCompileError: true, }, } { t.Run(tc.expression, func(t *testing.T) { ast, issues := env.Compile(tc.expression) if issues != nil { if tc.expectCompileError { return } t.Fatalf("compile error: %v", issues) } if issues != nil { t.Fatal(issues) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 4.1K bytes - Viewed (0) -
cmd/kubeadm/app/phases/kubelet/flags_test.go
}, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { nodeName, hostname, err := GetNodeNameAndHostname(tc.opts.nodeRegOpts) if err != nil { t.Errorf("unexpected error: %v", err) } if nodeName != tc.expectedNodeName { t.Errorf("expected nodeName: %v, got %v", tc.expectedNodeName, nodeName) } if hostname != tc.expectedHostName {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 24 07:02:51 UTC 2024 - 4.9K bytes - Viewed (0) -
tests/integration/pilot/proxyconfig/proxyconfig_test.go
map[string]string{ "A": "5", }, }, } for i, tc := range cases { ctx.NewSubTest(tc.name).Run(func(t framework.TestContext) { applyProxyConfigs(t, tc.configs) defer deleteProxyConfigs(t, tc.configs) svc := fmt.Sprintf("echo-%d", i) if tc.service != "" { svc = tc.service } echoConfig := echo.Config{ Namespace: ns,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 02 21:29:40 UTC 2024 - 6.3K bytes - Viewed (0) -
internal/logger/audit.go
headerBytes int64 ) tc, ok := r.Context().Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt) if ok { statusCode = tc.ResponseRecorder.StatusCode outputBytes = int64(tc.ResponseRecorder.Size()) headerBytes = int64(tc.ResponseRecorder.HeaderSize()) timeToResponse = time.Now().UTC().Sub(tc.ResponseRecorder.StartTime) timeToFirstByte = tc.ResponseRecorder.TimeToFirstByte }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 4.6K bytes - Viewed (0) -
src/internal/reflectlite/reflect_mirror_test.go
} var wg sync.WaitGroup rl, r := newVisitor(), newVisitor() for _, tc := range []struct { path, pkg string v visitor }{ {".", "reflectlite", rl}, {reflectDir, "reflect", r}, } { tc := tc wg.Add(1) go func() { defer wg.Done() loadTypes(tc.path, tc.pkg, tc.v) }() } wg.Wait() if len(rl.m) != len(r.m) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 19 21:11:15 UTC 2024 - 2.8K bytes - Viewed (0)