Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 153 for Sant (0.27 sec)

  1. 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)
  2. src/archive/zip/writer_test.go

    		}
    		if got.Method != want.method {
    			t.Errorf("%s: got Method %#x; want %#x", want.name, got.Method, want.method)
    		}
    		if got.Flags != want.flags {
    			t.Errorf("%s: got Flags %#x; want %#x", want.name, got.Flags, want.flags)
    		}
    		if got.CRC32 != want.crc32 {
    			t.Errorf("%s: got CRC32 %#x; want %#x", want.name, got.CRC32, want.crc32)
    		}
    		if got.CompressedSize64 != want.compressedSize {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Sep 15 19:04:06 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. misc/go_android_exec/exitcode_test.go

    	if want, got := pre, out.String(); want != got {
    		t.Errorf("filter should have already flushed %q, but flushed %q", want, got)
    	}
    
    	code, err := f.Finish()
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// Nothing more should have been written to out.
    	if want, got := pre, out.String(); want != got {
    		t.Errorf("want output %q, got %q", want, got)
    	}
    	if want := 1; want != code {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed May 03 14:54:58 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  6. internal/lock/lock_windows_test.go

    		{`\\?\c:\long/foo.txt`, `\\?\c:\long/foo.txt`},
    	} {
    		in := strings.ReplaceAll(test.in, "long", veryLong)
    		want := strings.ReplaceAll(test.want, "long", veryLong)
    		if got := fixLongPath(in); got != want {
    			got = strings.ReplaceAll(got, veryLong, "long")
    			t.Errorf("fixLongPath(%q) = %q; want %q", test.in, got, test.want)
    		}
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Oct 18 18:08:15 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  7. src/bytes/boundary_test.go

    				t.Fatalf("Index(b[%d:], q[:%d])=%d, want -1\n", i, j, idx)
    			}
    		}
    		q[j-1] = 0
    	}
    
    	// Test differing alignments and sizes of q which always end on a page boundary.
    	q[len(q)-1] = 1 // difference is only found on the last byte
    	for j := 0; j < len(q); j++ {
    		for i := range b {
    			idx := Index(b[i:], q[j:])
    			if idx != -1 {
    				t.Fatalf("Index(b[%d:], q[%d:])=%d, want -1\n", i, j, idx)
    			}
    		}
    	}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Nov 30 20:05:58 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  8. src/archive/tar/reader_test.go

    	for i, v := range vectors {
    		r := strings.NewReader(v.in)
    		got, err := parsePAX(r)
    		if !reflect.DeepEqual(got, v.want) && !(len(got) == 0 && len(v.want) == 0) {
    			t.Errorf("test %d, parsePAX():\ngot  %v\nwant %v", i, got, v.want)
    		}
    		if ok := err == nil; ok != v.ok {
    			t.Errorf("test %d, parsePAX(): got %v, want %v", i, ok, v.ok)
    		}
    	}
    }
    
    func TestReadOldGNUSparseMap(t *testing.T) {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
  9. cmd/streaming-signature-v4_test.go

    		tests = append(tests, testCase{in: fmt.Sprintf("%x", i), want: i})
    	}
    	for _, tt := range tests {
    		got, err := parseHexUint([]byte(tt.in))
    		if tt.wantErr != "" {
    			if err != nil && !strings.Contains(err.Error(), tt.wantErr) {
    				t.Errorf("parseHexUint(%q) = %v, %v; want error %q", tt.in, got, err, tt.wantErr)
    			}
    		} else {
    			if err != nil || got != tt.want {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 5.7K bytes
    - Viewed (0)
  10. internal/bucket/bandwidth/monitor_test.go

    			m.bucketsMeasurement[BucketOptions{Name: "bucket", ReplicationARN: "arn"}].updateExponentialMovingAverage(tt.fields.endTime)
    			got := m.GetReport(SelectBuckets())
    			if !reflect.DeepEqual(got, tt.want) {
    				t.Errorf("GetReport() = %v, want %v", got, tt.want)
    			}
    			m.bucketsMeasurement[BucketOptions{Name: "bucket", ReplicationARN: "arn"}].incrementBytes(tt.fields.update2)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Sep 06 03:21:59 GMT 2023
    - 4.3K bytes
    - Viewed (0)
Back to top