- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 55 for tc (0.11 sec)
-
cmd/bucket-lifecycle_test.go
expectedErr: errRestoreHDRMalformed, }, } for i, tc := range testCases { actual, err := parseRestoreObjStatus(tc.restoreHdr) if err != tc.expectedErr { t.Fatalf("Test %d: got %v expected %v", i+1, err, tc.expectedErr) } if actual != tc.expectedStatus { t.Fatalf("Test %d: got %v expected %v", i+1, actual, tc.expectedStatus) } } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue May 31 09:57:57 UTC 2022 - 7K bytes - Viewed (0) -
cmd/object-handlers-common_test.go
actualFlag := checkPreconditions(context.Background(), recorder, request, tc.objInfo, ObjectOptions{}) if tc.expectedFlag != actualFlag { t.Errorf("test: %s, got flag: %v, want: %v", tc.name, actualFlag, tc.expectedFlag) } if tc.expectedCode != recorder.Code { t.Errorf("test: %s, got code: %d, want: %d", tc.name, recorder.Code, tc.expectedCode) } }) } testCases = []struct {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Sep 03 06:33:53 UTC 2024 - 5.3K bytes - Viewed (0) -
istioctl/pkg/tag/tag_test.go
skipConfirmation: false, error: "", }, } for _, tc := range tcs { t.Run(tc.name, func(t *testing.T) { var out bytes.Buffer client := fake.NewClientset(tc.webhooksBefore.DeepCopyObject(), tc.namespaces.DeepCopyObject()) err := removeTag(context.Background(), client, tc.tag, tc.skipConfirmation, &out) if tc.error == "" && err != nil { t.Fatalf("expected no error, got %v", err) }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 8.5K bytes - Viewed (0) -
cni/test/install_k8s_test.go
}, } for _, tc := range cases { t.Run(tc.name, func(t *testing.T) { t.Logf("%s: Test preconf %s, expected %s", tc.name, tc.preConfFile, tc.expectedOutputFile) install.RunInstallCNITest(t, tc.chainedCNIPlugin, tc.preConfFile, tc.resultFileName, tc.delayedConfFile, tc.expectedOutputFile, tc.expectedPostCleanFile, tc.cniConfDirOrderedFiles) }) }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 30 23:59:49 UTC 2024 - 7.9K bytes - Viewed (0) -
internal/bucket/encryption/bucket-sse-config_test.go
} continue } if tc.keyID != "" && tc.keyID != ssec.KeyID() { t.Errorf("Test case %d: Expected bucket encryption KeyID %s but got %s", i+1, tc.keyID, ssec.KeyID()) } if expectedXML, err := xml.Marshal(tc.expectedConfig); err != nil || !bytes.Equal(expectedXML, []byte(tc.inputXML)) { t.Errorf("Test case %d: Expected bucket encryption XML %s but got %s", i+1, string(expectedXML), tc.inputXML) } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Aug 16 18:28:30 UTC 2022 - 6.1K bytes - Viewed (0) -
internal/bucket/versioning/versioning_test.go
}, } for i, tc := range testcases { var v *Versioning var err error v, err = ParseConfig(strings.NewReader(tc.input)) if tc.err != err { t.Fatalf("Test %d: expected %v but got %v", i+1, tc.err, err) } if err != nil { if tc.err == nil { t.Fatalf("Test %d: failed due to %v", i+1, err) } } else { if err := v.Validate(); tc.err != err {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun May 08 05:06:44 UTC 2022 - 8.8K bytes - Viewed (0) -
internal/s3select/sql/jsonpath_test.go
{"s.publicationHistory[0].pages", []interface{}{256.0, 336.0, Missing{}}}, } for i, tc := range cases { t.Run(tc.str, func(t *testing.T) { jp := JSONPath{} err := p.ParseString(tc.str, &jp) // fmt.Println(jp) if err != nil { t.Fatalf("parse failed!: %d %v %s", i, err, tc) } // Read only the first json object from the file recs, err := getJSONStructs(b)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 23 19:35:41 UTC 2024 - 2.8K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NameServiceClientImpl.java
/** * * @param tc */ public NameServiceClientImpl ( CIFSContext tc ) { this(tc.getConfig().getNetbiosLocalPort(), tc.getConfig().getNetbiosLocalAddress(), tc); } NameServiceClientImpl ( int lport, InetAddress laddr, CIFSContext tc ) { this.lport = lport; this.laddr = laddr; this.transportContext = tc;
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Aug 14 14:26:22 UTC 2022 - 38.2K 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.TTFB() }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Sep 24 17:13:00 UTC 2024 - 4.6K bytes - Viewed (0) -
internal/s3select/sql/parser_test.go
"a2", `"abc"`, `"abc\a""ac"`, } for i, tc := range validCases { err := p.ParseString(tc, &id) if err != nil { t.Fatalf("%d: %v", i, err) } // repr.Println(id, repr.Indent(" "), repr.OmitEmpty(true)) } invalidCases := []string{ "+a", "-a", "1a", `"ab`, `abc"`, `aa""a`, `"a"a"`, } for i, tc := range invalidCases { err := p.ParseString(tc, &id)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 9.2K bytes - Viewed (0)