- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 466 for testis (0.16 sec)
-
cni/pkg/plugin/plugin_test.go
} r := mockIntercept.lastRedirect[len(mockIntercept.lastRedirect)-1] if !r.dualStack { t.Fatalf("expect dualStack is true, actual %v", r.dualStack) } } func Test_dedupPorts(t *testing.T) { type args struct { ports []string } tests := []struct { name string args args want []string }{ { name: "No duplicates", args: args{ports: []string{"1234", "2345"}},
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Sat Feb 10 00:31:55 GMT 2024 - 17.5K bytes - Viewed (0) -
internal/s3select/sql/value_test.go
return FromString("") }, } func TestValue_SameTypeAs(t *testing.T) { type fields struct { a, b Value } type test struct { name string fields fields wantOk bool } var tests []test for i := range valueBuilders { a := valueBuilders[i]() for j := range valueBuilders { b := valueBuilders[j]() tests = append(tests, test{ name: fmt.Sprint(a.GetTypeString(), "==", b.GetTypeString()),
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Mon Mar 06 16:56:10 GMT 2023 - 12.5K bytes - Viewed (0) -
istioctl/pkg/writer/envoy/configdump/endpoint_test.go
// limitations under the License. package configdump import ( "bytes" "fmt" "os" "path" "testing" "istio.io/istio/pilot/test/util" "istio.io/istio/pkg/test/util/assert" ) func TestPrintEndpointsSummary(t *testing.T) { tests := []struct { name string filter EndpointFilter }{ { name: "emptyfilter", filter: EndpointFilter{}, }, {
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Tue Jul 12 02:25:59 GMT 2022 - 2.4K bytes - Viewed (0) -
tests/benchmark_test.go
package tests_test import ( "fmt" "testing" . "gorm.io/gorm/utils/tests" ) func BenchmarkCreate(b *testing.B) { user := *GetUser("bench", Config{}) for x := 0; x < b.N; x++ { user.ID = 0 DB.Create(&user) } } func BenchmarkFind(b *testing.B) { user := *GetUser("find", Config{}) DB.Create(&user) for x := 0; x < b.N; x++ { DB.Find(&User{}, "id = ?", user.ID) } }
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Wed Jun 01 03:50:57 GMT 2022 - 1.5K bytes - Viewed (0) -
cmd/erasure_test.go
} if err == nil && test.shouldFail { t.Errorf("Test %d: test should fail but it passed", i) } if err != nil && !test.shouldFail { t.Errorf("Test %d: test should pass but it failed: %v", i, err) } decoded := encoded if !test.shouldFail { if test.reconstructParity { for j := range decoded { if decoded[j] == nil { t.Errorf("Test %d: failed to reconstruct shard %d", i, j) }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Mon Jul 25 19:37:26 GMT 2022 - 4.8K bytes - Viewed (0) -
cmd/erasure-sets_test.go
b.Run("", func(b *testing.B) { b.SetBytes(1024) b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { sipHashMod(key, 16, testUUID) } }) } } // TestSipHashMod - test sip hash. func TestSipHashMod(t *testing.T) { testCases := []struct { objectName string sipHash int }{ // cases which should pass the test. // passing in valid object name.
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Mon Feb 12 07:21:56 GMT 2024 - 6.9K bytes - Viewed (0) -
operator/cmd/mesh/operator_test.go
for _, test := range tests { t.Run("", func(t *testing.T) { args := []string{"operator", "init", "--dry-run"} if test.operatorNamespace != "" { args = append(args, "--operatorNamespace", test.operatorNamespace) } if test.watchedNamespaces != "" { args = append(args, "--watchedNamespaces", test.watchedNamespaces) } kubeClientFunc = func() (kube.CLIClient, error) { return nil, nil
Go - Registered: Wed Mar 20 22:53:08 GMT 2024 - Last Modified: Tue Aug 29 14:15:33 GMT 2023 - 6.4K bytes - Viewed (0) -
internal/mountinfo/mountinfo_linux_test.go
package mountinfo import ( "fmt" "os" "path/filepath" "strings" "testing" ) // Tests cross device mount verification function, for both failure // and success cases. func TestCrossDeviceMountPaths(t *testing.T) { successCase := `/dev/0 /path/to/0/1 type0 flags 0 0 /dev/1 /path/to/1 type1 flags 1 1 /dev/2 /path/to/1/2 type2 flags,1,2=3 2 2
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Jan 18 07:03:17 GMT 2024 - 7.3K bytes - Viewed (0) -
tests/connpool_test.go
package tests_test import ( "context" "database/sql" "os" "reflect" "testing" "gorm.io/driver/mysql" "gorm.io/gorm" . "gorm.io/gorm/utils/tests" ) type wrapperTx struct { *sql.Tx conn *wrapperConnPool } func (c *wrapperTx) PrepareContext(ctx context.Context, query string) (*sql.Stmt, error) { c.conn.got = append(c.conn.got, query) return c.Tx.PrepareContext(ctx, query) }
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Tue Feb 06 02:54:40 GMT 2024 - 5.5K bytes - Viewed (0) -
cmd/data-usage-cache_test.go
"BETWEEN_1024B_AND_1_MB": 2, "BETWEEN_10_MB_AND_64_MB": 1, }, }, } for i, test := range tests { t.Run(fmt.Sprintf("Test-%d", i), func(t *testing.T) { var h sizeHistogram for _, sz := range test.sizes { h.add(sz) } got := h.toMap() exp := test.want // what is in exp is in got for k := range exp { if exp[k] != got[k] {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sat Jan 13 07:51:08 GMT 2024 - 2.6K bytes - Viewed (0)