- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 656 for testCases (0.19 sec)
-
internal/bucket/replication/replication_test.go
} for _, testCase := range testCases { testCase := testCase t.Run(testCase.opts.Name, func(t *testing.T) { result := testCase.c.Replicate(testCase.opts) if result != testCase.expectedResult { t.Errorf("expected: %v, got: %v", testCase.expectedResult, result) } }) } } func TestHasActiveRules(t *testing.T) { testCases := []struct { inputConfig string
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Mar 28 17:44:56 UTC 2024 - 32.5K bytes - Viewed (0) -
cmd/streaming-signature-v4_test.go
bytes.NewReader([]byte("1000;")), // Test - 3 bytes.NewReader([]byte(fmt.Sprintf("%4097d", 1))), // Test - 4 bytes.NewReader([]byte("1000;chunk-signature=111123333333333333334444211\r\n")), } testCases := []testCase{ // Test - 1 - small bufio reader. { bufio.NewReaderSize(readers[0], 16), errLineTooLong, nil, nil, }, // Test - 2 - unexpected end of the reader. {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Apr 23 18:58:53 UTC 2021 - 5.7K bytes - Viewed (0) -
internal/bucket/lifecycle/expiration_test.go
package lifecycle import ( "encoding/xml" "fmt" "testing" ) // appropriate errors on validation func TestInvalidExpiration(t *testing.T) { testCases := []struct { inputXML string expectedErr error }{ { // Expiration with zero days inputXML: ` <Expiration> <Days>0</Days>
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Feb 21 20:28:34 UTC 2024 - 4.1K bytes - Viewed (0) -
cmd/object-api-multipart_test.go
} // Validate all the test cases. for i, testCase := range testCases { actualInfo, actualErr := obj.PutObjectPart(context.Background(), testCase.bucketName, testCase.objName, testCase.uploadID, testCase.PartID, mustGetPutObjReader(t, bytes.NewBufferString(testCase.inputReaderData), testCase.inputDataSize, testCase.inputMd5, testCase.inputSHA256), opts) // All are test cases above are expected to fail.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 09:42:21 UTC 2024 - 88.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/FilesSimplifyPathTest.java
* --- fail(). (If the test were to pass, its output would be hidden.) * - Run the test. * - Pull the relevant lines of output from the test into a testcases file. * - Test the output: * --- cat testcases | while read L; do * X=($L) * A=$( cd /b/c && sudo mkdir -p ${X[0]} && cd ${X[0]} && pwd | * sed -e 's#^//*#/#' )
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 10.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FilesSimplifyPathTest.java
* --- fail(). (If the test were to pass, its output would be hidden.) * - Run the test. * - Pull the relevant lines of output from the test into a testcases file. * - Test the output: * --- cat testcases | while read L; do * X=($L) * A=$( cd /b/c && sudo mkdir -p ${X[0]} && cd ${X[0]} && pwd | * sed -e 's#^//*#/#' )
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 10.9K bytes - Viewed (0) -
istioctl/pkg/workload/workload_test.go
} cmdWithClusterID := []string{ "entry", "configure", "-f", path.Join("testdata/vmconfig", dir.Name(), "workloadgroup.yaml"), "--internalIP", testCases[dir.Name()]["internalIP"], "--ingressIP", testCases[dir.Name()]["ingressIP"], "--clusterID", constants.DefaultClusterName, "--revision", "rev-1", "-o", testdir, }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Aug 01 20:04:20 UTC 2024 - 14.6K bytes - Viewed (0) -
cmd/bucket-policy-handlers_test.go
}, } // Iterating over the cases, fetching the policy and validating the response. for i, testCase := range testCases { // expected bucket policy json string. expectedBucketPolicyStr := fmt.Sprintf(testCase.expectedBucketPolicy, testCase.bucketName, testCase.bucketName) // initialize HTTP NewRecorder, this records any mutations to response writer inside the handler. recV4 := httptest.NewRecorder()
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jun 10 15:50:49 UTC 2024 - 32.9K bytes - Viewed (0) -
internal/bucket/lifecycle/filter_test.go
"testing" "github.com/dustin/go-humanize" ) // TestUnsupportedFilters checks if parsing Filter xml with // unsupported elements returns appropriate errors func TestUnsupportedFilters(t *testing.T) { testCases := []struct { inputXML string expectedErr error }{ { // Filter with And tags inputXML: ` <Filter> <And> <Prefix>key-prefix</Prefix> </And> </Filter>`,
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Feb 27 00:01:20 UTC 2024 - 7.2K bytes - Viewed (0) -
internal/bucket/versioning/versioning_test.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package versioning import ( "encoding/xml" "strings" "testing" ) func TestParseConfig(t *testing.T) { testcases := []struct { input string err error excludedPrefixes []string excludeFolders bool }{ { input: `<VersioningConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun May 08 05:06:44 UTC 2022 - 8.8K bytes - Viewed (0)