- Sort Score
- Result 10 results
- Languages All
Results 241 - 250 of 693 for fprintf (0.12 sec)
-
cmd/endpoint-ellipses_test.go
if paddinglen == 0 { seq = append(seq, fmt.Sprintf("%x", i)) } else { seq = append(seq, fmt.Sprintf(fmt.Sprintf("%%0%dx", paddinglen), i)) } } return seq } func getSequences(start int, number int, paddinglen int) (seq []string) { for i := start; i <= number; i++ { if paddinglen == 0 { seq = append(seq, fmt.Sprintf("%d", i)) } else {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 15.2K bytes - Viewed (0) -
src/cmd/api/boring_test.go
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Aug 16 16:02:26 UTC 2023 - 300 bytes - Viewed (0) -
docs/sts/custom-token-identity.go
} // Use minIO Client object normally like the regular client. fmt.Printf("Calling list objects on bucket named `%s` with temp creds:\n===\n", bucketToList) objCh := minioClient.ListObjects(context.Background(), bucketToList, minio.ListObjectsOptions{}) for obj := range objCh { if obj.Err != nil { log.Fatalf("Listing error: %v", obj.Err) } fmt.Printf("Key: %s\nSize: %d\nLast Modified: %s\n===\n", obj.Key, obj.Size, obj.LastModified)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 27 00:58:09 UTC 2022 - 3.4K bytes - Viewed (0) -
cni/pkg/nodeagent/ztunnelserver_test.go
// it would leak, but this is a test, so we don't care // defer devNull.Close() id := ztunnelTestCounter.Add(1) pod := &v1.Pod{ ObjectMeta: metav1.ObjectMeta{ Name: fmt.Sprintf("name-%d", id), UID: types.UID(fmt.Sprintf("uid-%d", id)), }, Spec: v1.PodSpec{}, Status: v1.PodStatus{}, } return pod, newFakeNs(devNull.Fd()) } func connect(ctx context.Context) struct {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Apr 12 21:47:31 UTC 2024 - 8.6K bytes - Viewed (0) -
internal/dsync/drwmutex_test.go
if n != 10000 { panic(fmt.Sprintf("wlock(%d)\n", n)) } for i := 0; i < 100; i++ { } atomic.AddInt32(activity, -10000) rwm.Unlock(context.Background()) } } cdone <- true } // Borrowed from rwmutex_test.go func hammerRWMutex(t *testing.T, gomaxprocs, numReaders, numIterations int) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Dec 24 03:49:07 UTC 2022 - 9.7K bytes - Viewed (0) -
istioctl/pkg/injector/injector-list_test.go
Annotations: map[string]string{ annotation.SidecarStatus.Name: `{"revision":"test-anno"}`, }, }, }, expectedRevision: "test-anno", }, } for i, c := range cases { t.Run(fmt.Sprintf("case %d %s", i, c.name), func(t *testing.T) { assert.Equal(t, c.expectedRevision, extractRevisionFromPod(c.pod)) }) } } func Test_getNamespaces(t *testing.T) {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 5.5K bytes - Viewed (0) -
internal/bucket/lifecycle/expiration_test.go
<Date>2019-04-20T00:01:00Z</Date> </Expiration>`, expectedErr: errLifecycleDateNotMidnight, }, } for i, tc := range testCases { t.Run(fmt.Sprintf("Test %d", i+1), func(t *testing.T) { var expiration Expiration err := xml.Unmarshal([]byte(tc.inputXML), &expiration) if err != tc.expectedErr { t.Fatalf("%d: Expected %v but got %v", i+1, tc.expectedErr, err)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Feb 21 20:28:34 UTC 2024 - 4.1K bytes - Viewed (0) -
logger/sql_test.go
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Mar 21 08:00:02 UTC 2024 - 8.4K bytes - Viewed (0) -
clause/group_by_test.go
}}, "SELECT * FROM `users` GROUP BY `role`,`gender` HAVING `role` = ? AND `gender` <> ?", []interface{}{"admin", "U"}, }, } for idx, result := range results { t.Run(fmt.Sprintf("case #%v", idx), func(t *testing.T) { checkBuildClauses(t, result.Clauses, result.Result, result.Vars) }) }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Jan 06 07:02:53 UTC 2022 - 1.1K bytes - Viewed (0) -
istioctl/pkg/writer/envoy/configdump/endpoint_test.go
cd, _ := os.ReadFile("testdata/endpoint/configdump.json") cw.Prime(cd) err := cw.PrintEndpointsSummary(tt.filter) assert.NoError(t, err) wantOutputFile := path.Join("testdata/endpoint", fmt.Sprintf("%s_output.txt", tt.name)) util.CompareContent(t, gotOut.Bytes(), wantOutputFile) }) } } func TestPrintEndpoints(t *testing.T) { tests := []struct { name string outputFormat string
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Tue Jul 12 02:25:59 UTC 2022 - 2.4K bytes - Viewed (0)