Search Options

Results per page
Sort
Preferred Languages
Advance

Results 221 - 230 of 411 for Got (0.02 sec)

  1. internal/config/certs_test.go

    		if !testCase.expectedErr && err != nil {
    			t.Fatalf("error: expected = <nil>, got = %v", err)
    		}
    		if testCase.expectedErr && err == nil {
    			t.Fatal("error: expected err, got = <nil>")
    		}
    		if len(certs) != testCase.expectedResultLen {
    			t.Fatalf("certs: expected = %v, got = %v", testCase.expectedResultLen, len(certs))
    		}
    	}
    }
    
    func TestLoadX509KeyPair(t *testing.T) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 21.6K bytes
    - Viewed (0)
  2. cmd/object-api-options_test.go

    			req.Header = testCase.headers
    
    			opts, _ := getAndValidateAttributesOpts(ctx, rec, req, bucket, "testobject")
    
    			if !reflect.DeepEqual(opts.ObjectAttributes, testCase.wantObjectAttrs) {
    				t.Errorf("want opts %v, got %v", testCase.wantObjectAttrs, opts.ObjectAttributes)
    			}
    		})
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 21 21:13:59 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. internal/amztime/iso8601_time_test.go

    		t.Run(testCase.expectedOutput, func(t *testing.T) {
    			gotOutput := ISO8601Format(testCase.date)
    			t.Log("Go", testCase.date.Format(iso8601TimeFormat))
    			if gotOutput != testCase.expectedOutput {
    				t.Errorf("Expected %s, got %s", testCase.expectedOutput, gotOutput)
    			}
    		})
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Dec 12 18:28:30 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  4. cmd/endpoint-ellipses_test.go

    	}
    
    	for _, testCase := range testCases {
    		testCase := testCase
    		t.Run("", func(t *testing.T) {
    			gotGCD := getDivisibleSize(testCase.totalSizes)
    			if testCase.result != gotGCD {
    				t.Errorf("Expected %v, got %v", testCase.result, gotGCD)
    			}
    		})
    	}
    }
    
    // Test tests calculating set indexes with ENV override for drive count.
    func TestGetSetIndexesEnvOverride(t *testing.T) {
    	testCases := []struct {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  5. cmd/update-notifier_test.go

    		// fmt.Println(output)
    		switch {
    		case testCase.dlURL == "" && output != "":
    			t.Errorf("Testcase %d: no newer release available but got an update message: %s", i+1, output)
    		case output == "" && testCase.dlURL != "" && testCase.older > 0:
    			t.Errorf("Testcase %d: newer release is available but got empty update message!", i+1)
    		case output == "" && (testCase.dlURL == "" || testCase.older <= 0):
    			// Valid no update message case. No further
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 31 15:36:19 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  6. internal/disk/stat_test.go

    			}
    			if testCase.expectErr && err == nil {
    				t.Fatal("expected to fail but err is nil")
    			}
    			if !reflect.DeepEqual(iostats, testCase.expectedIOStats) {
    				t.Fatalf("expected iostats: %v but got %v", testCase.expectedIOStats, iostats)
    			}
    		})
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. statement_test.go

    		`"User__Company".*`:  {"User__Company", "*"},
    		`"table"."*"`:        {"", ""},
    	} {
    		if table, column := matchName(k); table != v[0] || column != v[1] {
    			t.Errorf("failed to match value: %v, got %v, expect: %v", k, []string{table, column}, v)
    		}
    	}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Sat Dec 23 13:19:41 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  8. cmd/erasure-healing_test.go

    			if !gotMeta.Equals(testCase.expectedMeta) {
    				t.Errorf("Expected %#v, got %#v", testCase.expectedMeta, gotMeta)
    			}
    			if dangling != testCase.expectedDangling {
    				t.Errorf("Expected dangling %t, got %t", testCase.expectedDangling, dangling)
    			}
    		})
    	}
    }
    
    // Tests both object and bucket healing.
    func TestHealing(t *testing.T) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 49K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java

          int remainder = a % b;
          return remainder == 0 ? a : a + b - remainder;
        }
    
        void assertBytes(byte[] expected) {
          byte[] got = out.toByteArray();
          for (int i = 0; i < expected.length; i++) {
            assertEquals(expected[i], got[i]);
          }
        }
      }
    
      // Assumes that AbstractNonStreamingHashFunction works properly (must be tested elsewhere!)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  10. cmd/config-encrypted_test.go

    			}
    			if err == nil && !test.success {
    				t.Error("Expected failure, saw success")
    			}
    			if test.success {
    				if !bytes.Equal(ddata, data) {
    					t.Errorf("Expected %s, got %s", string(data), string(ddata))
    				}
    			}
    		})
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 20 00:53:08 UTC 2023
    - 1.9K bytes
    - Viewed (0)
Back to top