- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 596 for casse (0.17 sec)
-
cmd/erasure-healing-common_test.go
} return latestFileInfo, nil } // validates functionality provided to find most common // time occurrence from a list of time. func TestCommonTime(t *testing.T) { // List of test cases for common modTime. testCases := []struct { times []time.Time time time.Time quorum int }{ { // 1. Tests common times when slice has varying time elements. []time.Time{
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Tue Jan 30 20:43:25 GMT 2024 - 23K bytes - Viewed (1) -
istioctl/pkg/workload/workload_test.go
}, { description: "valid case - create full workload group with shortnames", args: strings.Split("group create --name foo -n bar -l app=foo,bar=baz -p grpc=3550,http=8080"+ " -a annotation=foobar --serviceAccount test", " "), expectedException: false, expectedOutput: customYAML, }, } for i, c := range cases { t.Run(fmt.Sprintf("case %d %s", i, c.description), func(t *testing.T) {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed Mar 27 16:59:05 GMT 2024 - 14.6K bytes - Viewed (0) -
operator/cmd/mesh/profile-diff_test.go
expectedString: "Profiles are identical", }, } for i, c := range cases { t.Run(fmt.Sprintf("case %d %q", i, c.args), func(t *testing.T) { output, fErr := runCommand(c.args) verifyProfileDiffCommandCaseOutput(t, c, output, fErr) }) } } func TestProfileDiffDirect(t *testing.T) { cases := []profileDiffTestcase{ { // We won't be parsing with Cobra, but this is the command equivalent
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed Jan 10 05:10:03 GMT 2024 - 3.6K bytes - Viewed (1) -
operator/cmd/mesh/profile-dump.go
switch outputFormat { case jsonOutput, yamlOutput, flagsOutput: default: return fmt.Errorf("unknown output format: %s", outputFormat) } return nil } // yamlToFormat converts the generated yaml config to the expected format func yamlToFormat(yaml, outputFormat string) (string, error) { var output string switch outputFormat { case jsonOutput: j, err := yamlToPrettyJSON(yaml)
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Mar 15 01:18:49 GMT 2024 - 7.1K bytes - Viewed (0) -
cmd/site-replication.go
Cause: errors.New("site replication resync is already in progress"), Code: ErrSiteReplicationInvalidRequest, } errSRResyncCanceled = SRError{ Cause: errors.New("site replication resync is already canceled"), Code: ErrSiteReplicationInvalidRequest, } errSRNoResync = SRError{ Cause: errors.New("no resync in progress"), Code: ErrSiteReplicationInvalidRequest, } errSRResyncToSelf = SRError{
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Wed May 01 01:09:56 GMT 2024 - 184.2K bytes - Viewed (1) -
cmd/copy-part-range.go
return nil, errInvalidRange } return hrange, nil } // checkCopyPartRangeWithSize adds more check to the range string in case of // copy object part. This API requires having specific start and end range values // e.g. 'bytes=3-10'. Other use cases will be rejected. func checkCopyPartRangeWithSize(rs *HTTPRangeSpec, resourceSize int64) (err error) { if rs == nil { return nil }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Jun 18 03:27:04 GMT 2021 - 2.5K bytes - Viewed (0) -
cmd/os-reliable.go
switch { case isSysErrNotDir(err) && !osIsNotExist(err): // Windows can have both isSysErrNotDir(err) and osIsNotExist(err) returning // true if the source file path contains an non-existent directory. In that case, // we want to return errFileNotFound instead, which will honored in subsequent // switch cases return errFileAccessDenied case isSysErrPathNotFound(err):
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Mon Apr 22 17:49:30 GMT 2024 - 5.8K bytes - Viewed (0) -
internal/s3select/sql/jsonpath_test.go
} b, err := io.ReadAll(f) if err != nil { t.Fatal(err) } p := participle.MustBuild( &JSONPath{}, participle.Lexer(sqlLexer), participle.CaseInsensitive("Keyword"), ) cases := []struct { str string res []interface{} }{ {"s.title", []interface{}{"Murder on the Orient Express", "The Robots of Dawn", "Pigs Have Wings"}},
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Mon Sep 19 18:05:16 GMT 2022 - 2.8K bytes - Viewed (0) -
internal/dsync/dsync_test.go
} // Make it run twice. timer := time.NewTimer(testDrwMutexRefreshInterval * 2) select { case <-ctx.Done(): t.Fatal("Lock context canceled which is not expected") case <-timer.C: } // Should be safe operation in all cases dm.Unlock(context.Background()) } // Test canceling context while quorum servers report lock not found
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sat Dec 24 03:49:07 GMT 2022 - 11K bytes - Viewed (0) -
internal/s3select/csv/reader_contrib_test.go
} fields++ } r.Close() if err != io.EOF { t.Fatalf("Case %d failed with %s", i, err) } if !reflect.DeepEqual(r.columnNames, c.wantColumns) { t.Errorf("Case %d failed: expected %#v, got result %#v", i, c.wantColumns, r.columnNames) } if result.String() != c.wantTenFields { t.Errorf("Case %d failed: expected %v, got result %v", i, c.wantTenFields, result.String()) }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Mon Sep 19 18:05:16 GMT 2022 - 38.5K bytes - Viewed (0)