Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 411 for Got (0.03 sec)

  1. internal/event/rulesmap_test.go

    		if !reflect.DeepEqual(result, testCase.rulesMap) {
    			t.Fatalf("test %v: result: expected: %v, got: %v", i+1, testCase.rulesMap, result)
    		}
    
    		result.Add(testCase.rulesMapToAdd)
    		if reflect.DeepEqual(result, testCase.rulesMap) {
    			t.Fatalf("test %v: result: expected: not equal, got: equal", i+1)
    		}
    	}
    }
    
    func TestRulesMapAdd(t *testing.T) {
    	rulesMapCase1 := make(RulesMap)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jan 05 18:43:06 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  2. internal/hash/reader_test.go

    	}
    	if r.Size() != 4 {
    		t.Errorf("Expected size 4, got %d", r.Size())
    	}
    	if r.ActualSize() != 4 {
    		t.Errorf("Expected size 4, got %d", r.ActualSize())
    	}
    	expectedMD5, err := hex.DecodeString("e2fc714c4727ee9395f324cd2e7f331f")
    	if err != nil {
    		t.Fatal(err)
    	}
    	if !bytes.Equal(r.MD5Current(), expectedMD5) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 18 17:00:54 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  3. cmd/xl-storage-free-version_test.go

    		if err != nil && !errors.Is(err, ft.expectedErr) {
    			t.Fatalf("ToFileInfo failed due to %v", err)
    		}
    		if got := fi.TierFreeVersion(); got != ft.expectedFree {
    			t.Fatalf("Expected free-version=%v but got free-version=%v", ft.expectedFree, got)
    		}
    		if ft.afterFn != nil {
    			_, err = ft.afterFn(fi)
    			if err != nil {
    				t.Fatalf("ft.afterFn failed with err %v", err)
    			}
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Mar 02 05:11:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  4. internal/etag/etag_test.go

    	},
    }
    
    func TestString(t *testing.T) {
    	for i, test := range stringTests {
    		s := test.ETag.String()
    		if s != test.String {
    			t.Fatalf("Test %d: got %s - want %s", i, s, test.String)
    		}
    	}
    }
    
    var equalTests = []struct {
    	A     string
    	B     string
    	Equal bool
    }{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 18 17:00:54 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  5. internal/s3select/jstream/scanner_test.go

    		if c == byte(0) {
    			break
    		}
    		if c != mockData {
    			t.Fatalf("expected \"%s\", got \"%s\"", string(mockData), string(c))
    		}
    		i++
    	}
    	c := scanner.next()
    	if scanner.readerErr == nil {
    		t.Fatalf("failed to receive expected error after %d bytes", failAfter)
    	}
    	if c != byte(0) {
    		t.Fatalf("expected null byte, got %v", c)
    	}
    }
    
    func BenchmarkBufioScanner(b *testing.B) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. internal/config/lambda/event/targetid_test.go

    		expectErr := (err != nil)
    
    		if expectErr != testCase.expectErr {
    			t.Fatalf("test %v: error: expected: %v, got: %v", i+1, testCase.expectErr, expectErr)
    		}
    
    		if !testCase.expectErr {
    			if !reflect.DeepEqual(data, testCase.expectedData) {
    				t.Fatalf("test %v: data: expected: %v, got: %v", i+1, string(testCase.expectedData), string(data))
    			}
    		}
    	}
    }
    
    func TestTargetDUnmarshalJSON(t *testing.T) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Mar 07 16:12:41 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  7. internal/event/targetid_test.go

    		expectErr := (err != nil)
    
    		if expectErr != testCase.expectErr {
    			t.Fatalf("test %v: error: expected: %v, got: %v", i+1, testCase.expectErr, expectErr)
    		}
    
    		if !testCase.expectErr {
    			if !reflect.DeepEqual(data, testCase.expectedData) {
    				t.Fatalf("test %v: data: expected: %v, got: %v", i+1, string(testCase.expectedData), string(data))
    			}
    		}
    	}
    }
    
    func TestTargetDUnmarshalJSON(t *testing.T) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 3.5K bytes
    - Viewed (0)
  8. cmd/object-handlers-common_test.go

    			if tc.expectedFlag != actualFlag {
    				t.Errorf("test: %s, got flag: %v, want: %v", tc.name, actualFlag, tc.expectedFlag)
    			}
    			if tc.expectedCode != recorder.Code {
    				t.Errorf("test: %s, got code: %d, want: %d", tc.name, recorder.Code, tc.expectedCode)
    			}
    		})
    	}
    	testCases = []struct {
    		name              string
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 03 06:33:53 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  9. tests/distinct_test.go

    		t.Errorf("failed to query users, got error: %v", err)
    	}
    
    	expects := []User{
    		{Name: "distinct", Age: 20},
    		{Name: "distinct", Age: 18},
    		{Name: "distinct-2", Age: 18},
    		{Name: "distinct-3", Age: 18},
    	}
    
    	if len(results) != 4 {
    		t.Fatalf("invalid results length found, expects: %v, got %v", len(expects), len(results))
    	}
    
    	for idx, expect := range expects {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jan 06 07:02:53 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  10. cmd/encryption-v1_test.go

    		t.Fatalf("Test: expected %d, got %d", 595127964, encOff)
    	}
    	if encLength != 32796 {
    		t.Fatalf("Test: expected %d, got %d", 32796, encLength)
    	}
    	if skipLen != 32756 {
    		t.Fatalf("Test: expected %d, got %d", 32756, skipLen)
    	}
    	if seqNumber != 4538 {
    		t.Fatalf("Test: expected %d, got %d", 4538, seqNumber)
    	}
    	if partStart != 1 {
    		t.Fatalf("Test: expected %d, got %d", 1, partStart)
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Sep 24 04:17:08 UTC 2022
    - 19.9K bytes
    - Viewed (0)
Back to top