- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 1,281 for testCases (0.15 sec)
-
pkg/util/hash/hash_test.go
// See the License for the specific language governing permissions and // limitations under the License. package hash import ( "testing" ) func TestFactory(t *testing.T) { testCases := []struct { name string str string wantSum []byte wantStr string wantUint64 uint64 wantLittleEndianUint64 uint64 }{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Dec 21 20:24:14 UTC 2023 - 2.2K bytes - Viewed (0) -
cmd/erasure-metadata_test.go
} // Test them. for _, testCase := range testCases { index, offset, err := fi.ObjectToPartOffset(context.Background(), testCase.offset) if err != testCase.expectedErr { t.Fatalf("%+v: expected = %s, got: %s", testCase, testCase.expectedErr, err) } if index != testCase.expectedIndex { t.Fatalf("%+v: index: expected = %d, got: %d", testCase, testCase.expectedIndex, index) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 17 20:57:37 UTC 2024 - 10.4K bytes - Viewed (0) -
pkg/registry/core/service/allocator/bitmap_test.go
}, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { m := tc.allocator(tc.max, "test", tc.reserved) if ok, _ := m.Allocate(3); !ok { t.Errorf("error allocate offset %v", 3) } if ok, _ := m.Allocate(3); ok { t.Errorf("unexpected success") } }) } } func TestRelease(t *testing.T) { testCases := []struct { name string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 10 08:56:31 UTC 2022 - 13.3K bytes - Viewed (0) -
security/pkg/pki/util/san_test.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Feb 12 17:36:33 UTC 2024 - 6.5K bytes - Viewed (0) -
cmd/policy_test.go
{yourbucketAnonGetObjectActionArgs, false}, {yourbucketGetObjectActionArgs, true}, } for i, testCase := range testCases { result := p.IsAllowed(testCase.args) if result != testCase.expectedResult { t.Fatalf("case %v: expected: %v, got: %v\n", i+1, testCase.expectedResult, result) } } } func getReadOnlyStatement(bucketName, prefix string) []miniogopolicy.Statement {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 8.9K bytes - Viewed (0) -
cmd/api-resources_test.go
}, } for i, testCase := range testCases { prefix, token, startAfter, delimiter, fetchOwner, maxKeys, encodingType, errCode := getListObjectsV2Args(testCase.values) if errCode != testCase.errCode { t.Errorf("Test %d: Expected error code:%d, got %d", i+1, testCase.errCode, errCode) } if prefix != testCase.prefix { t.Errorf("Test %d: Expected %s, got %s", i+1, testCase.prefix, prefix) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Apr 23 18:58:53 UTC 2021 - 7.1K bytes - Viewed (0) -
internal/event/targetlist_test.go
{targetListCase3, &ExampleTarget{TargetID{"3", "testcase"}, false, false}, nil, true}, } for i, testCase := range testCases { err := testCase.targetList.Add(testCase.target) expectErr := (err != nil) if expectErr != testCase.expectErr { t.Fatalf("test %v: error: expected: %v, got: %v", i+1, testCase.expectErr, expectErr) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Dec 05 10:16:33 UTC 2023 - 6.1K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/process/instrument/AbstractProcessInstrumentationInDynamicGroovyIntegrationTest.groovy
@Shared def testCases = testCasesWithIndyModes() /** * Produces a list of test cases. Each test case is itself a list of the following structure: * {@code [varInitializer, processCreator, expectedPwdSuffix, expectedEnvVar]}. * @return the list of test cases */ abstract def testCases() /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 3.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/apiserver/v1/defaults_test.go
}, } for _, tt := range testCases { t.Run(tt.desc, func(t *testing.T) { SetDefaults_KMSConfiguration(tt.in) if d := cmp.Diff(tt.want, tt.in); d != "" { t.Fatalf("KMS Provider mismatch (-want +got):\n%s", d) } }) } } func TestKMSProviderAPIVersionDefaults(t *testing.T) { testCases := []struct { desc string in *KMSConfiguration
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Dec 18 20:54:24 UTC 2023 - 4.2K bytes - Viewed (0) -
cmd/common-main_test.go
}, }, }, } for _, testCase := range testCases { testCase := testCase t.Run("", func(t *testing.T) { tmpfile, err := os.CreateTemp("", "testfile") if err != nil { t.Error(err) } tmpfile.WriteString(testCase.content) tmpfile.Sync() tmpfile.Close() ekvs, err := minioEnvironFromFile(tmpfile.Name()) if err != nil && !testCase.expectedErr { t.Error(err) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 3.7K bytes - Viewed (0)