Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 385 for Sant (0.17 sec)

  1. src/archive/tar/tar_test.go

    		}
    		if got, want := h2.Uname, v.h.Uname; got != want {
    			t.Errorf("i=%d: Uname: got %q, want %q", i, got, want)
    		}
    		if got, want := h2.Gname, v.h.Gname; got != want {
    			t.Errorf("i=%d: Gname: got %q, want %q", i, got, want)
    		}
    		if got, want := h2.Linkname, v.h.Linkname; got != want {
    			t.Errorf("i=%d: Linkname: got %v, want %v", i, got, want)
    		}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
  2. cni/pkg/log/uds_test.go

    		strings.TrimSuffix(string(out), "\n"), "\n")
    	if want, got := len(wantLevels), len(gotLogs); want != got {
    		t.Fatalf("Number of logs want %v, got %v logs: %v", want, got, gotLogs)
    	}
    
    	for i, l := range gotLogs {
    		// For each line, there should be two level string, e.g.
    		// "2021-07-09T03:26:08.984951Z	debug	debug log"
    		if got, want := strings.Count(l, wantLevels[i]), 2; want != got {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Sat Mar 16 00:20:01 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  3. internal/bucket/lifecycle/filter_test.go

    		filter   Filter
    		userTags string
    		want     bool
    	}{
    		{
    			filter:   noTags,
    			userTags: "",
    			want:     true,
    		},
    		{
    			filter:   noTags,
    			userTags: "A=3",
    			want:     true,
    		},
    		{
    			filter:   oneTag,
    			userTags: "A=3",
    			want:     false,
    		},
    		{
    			filter:   oneTag,
    			userTags: "FOO=1",
    			want:     true,
    		},
    		{
    			filter:   oneTag,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Feb 27 00:01:20 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  4. istioctl/pkg/workload/workload_test.go

    		name string
    		arg  []string
    		want map[string]string
    	}{
    		{name: "empty", arg: []string{""}, want: map[string]string{"": ""}},
    		{name: "one-valid", arg: []string{"key=value"}, want: map[string]string{"key": "value"}},
    		{name: "one-valid-double-equals", arg: []string{"key==value"}, want: map[string]string{"key": "=value"}},
    		{name: "one-key-only", arg: []string{"key"}, want: map[string]string{"key": ""}},
    	}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed Mar 27 16:59:05 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  5. src/archive/zip/zip_test.go

    		t.Errorf("UncompressedSize: got %d, want %d\n", got, want)
    	}
    	if got, want := fh2.UncompressedSize64, wantUncompressedSize64; got != want {
    		t.Errorf("UncompressedSize64: got %d, want %d\n", got, want)
    	}
    	if got, want := fh2.ModifiedTime, fh.ModifiedTime; got != want {
    		t.Errorf("ModifiedTime: got %d, want %d\n", got, want)
    	}
    	if got, want := fh2.ModifiedDate, fh.ModifiedDate; got != want {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  6. internal/arn/arn_test.go

    				Region:       "us-east-1",
    				ResourceType: "role",
    				ResourceID:   "my-role",
    			},
    			want: "arn:minio::us-east-1::role/my-role",
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.want, func(t *testing.T) {
    			if got := tt.arn.String(); got != tt.want {
    				t.Errorf("ARN.String() = %v, want %v", got, tt.want)
    			}
    		})
    	}
    }
    
    func TestNewIAMRoleARN(t *testing.T) {
    	type args struct {
    		resourceID   string
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 08:31:34 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  7. internal/bpool/bpool_test.go

    		t.Fatalf("bytepool width invalid: got %v want %v", bufPool.Width(), width)
    	}
    
    	// Check with width cap
    	if bufPool.WidthCap() != capWidth {
    		t.Fatalf("bytepool capWidth invalid: got %v want %v", bufPool.WidthCap(), capWidth)
    	}
    
    	// Check that retrieved buffer are of the expected width
    	b := bufPool.Get()
    	if len(b) != width {
    		t.Fatalf("bytepool length invalid: got %v want %v", len(b), width)
    	}
    	if cap(b) != capWidth {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jan 30 19:13:27 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  8. cmd/data-usage_test.go

    		t.Error("lastupdate not set")
    	}
    
    	if !want.Info.LastUpdate.Equal(got.Info.LastUpdate) {
    		t.Fatalf("deserialize LastUpdate mismatch\nwant: %+v\ngot:  %+v", want, got)
    	}
    	if len(want.Cache) != len(got.Cache) {
    		t.Errorf("deserialize mismatch length\nwant: %+v\ngot:  %+v", len(want.Cache), len(got.Cache))
    	}
    	for wkey, wval := range want.Cache {
    		gotv := got.Cache[wkey]
    		if !equalAsJSON(gotv, wval) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Mar 27 15:10:40 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  9. docs/debugging/inspect/decrypt-v1.go

    		return err
    	}
    	key, err := hex.DecodeString(keyHex[8:])
    	if err != nil {
    		return err
    	}
    	// Verify that CRC is ok.
    	want := binary.LittleEndian.Uint32(id)
    	got := crc32.ChecksumIEEE(key)
    	if want != got {
    		return fmt.Errorf("Invalid key checksum, want %x, got %x", want, got)
    	}
    
    	stream, err := sio.AES_256_GCM.Stream(key)
    	if err != nil {
    		return err
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 21:22:47 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  10. src/archive/tar/writer_test.go

    				}
    			}
    
    			if v.file != "" {
    				want, err := os.ReadFile(v.file)
    				if err != nil {
    					t.Fatalf("ReadFile() = %v, want nil", err)
    				}
    				got := buf.Bytes()
    				if !bytes.Equal(want, got) {
    					t.Fatalf("incorrect result: (-got +want)\n%v", bytediff(got, want))
    				}
    			}
    		})
    	}
    }
    
    func TestPax(t *testing.T) {
    	// Create an archive with a large name
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
Back to top