- Sort Score
- Result 10 results
- Languages All
Results 231 - 240 of 413 for got4 (0.03 sec)
-
schema/callbacks_test.go
return nil } func TestCallback(t *testing.T) { user, err := schema.Parse(&UserWithCallback{}, &sync.Map{}, schema.NamingStrategy{}) if err != nil { t.Fatalf("failed to parse user with callback, got error %v", err) } for _, str := range []string{"BeforeSave", "AfterCreate"} { if !reflect.Indirect(reflect.ValueOf(user)).FieldByName(str).Interface().(bool) { t.Errorf("%v should be true", str) } }
Registered: Sun Oct 27 09:35:08 UTC 2024 - Last Modified: Thu Jan 06 07:02:53 UTC 2022 - 939 bytes - Viewed (0) -
cni/pkg/iptables/iptables_linux.go
if cfg.EnableIPv6 { // IPv6 may be enabled, but only partially v, err := ReadSysctl(ipv6DisabledLo) if v != "1" { // If we got an error, we will proceed. Maybe it will work anyways if err != nil { log.Warnf("attempted to read %q got error: %v; attemping to continue", ipv6DisabledLo, err) } cidrs = append(cidrs, "0::0/0") } else {
Registered: Wed Oct 30 22:53:10 UTC 2024 - Last Modified: Fri Sep 06 09:44:28 UTC 2024 - 4K bytes - Viewed (0) -
internal/grid/muxserver.go
func (m *muxServer) checkSeq(seq uint32) (ok bool) { if seq != m.RecvSeq { if debugPrint { fmt.Printf("expected sequence %d, got %d\n", m.RecvSeq, seq) } m.disconnect(fmt.Sprintf("receive sequence number mismatch. want %d, got %d", m.RecvSeq, seq), false) return false } m.RecvSeq++ return true } func (m *muxServer) message(msg message) { if debugPrint {
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Fri Jun 07 15:51:52 UTC 2024 - 9.7K bytes - Viewed (0) -
istioctl/pkg/describe/describe_test.go
"revision": "1-13-2" }`, }, expected: "1-13-2", }, } for _, tc := range cases { t.Run("", func(t *testing.T) { got := GetRevisionFromPodAnnotation(tc.anno) assert.Equal(t, tc.expected, got) }) } } func TestFindProtocolForPort(t *testing.T) { http := "HTTP" hbone := "hbone" cases := []struct { port corev1.ServicePort
Registered: Wed Oct 30 22:53:10 UTC 2024 - Last Modified: Thu Aug 01 20:04:20 UTC 2024 - 30.8K bytes - Viewed (0) -
callbacks/helper_test.go
}, } for _, tc := range testCase { t.Run(tc.name, func(t *testing.T) { actual := ConvertMapToValuesForCreate(&gorm.Statement{}, tc.input) if !reflect.DeepEqual(actual, tc.expect) { t.Errorf("expect %v got %v", tc.expect, actual) } }) } } func TestConvertSliceOfMapToValuesForCreate(t *testing.T) { testCase := []struct { name string input []map[string]interface{} expect clause.Values
Registered: Sun Oct 27 09:35:08 UTC 2024 - Last Modified: Tue Mar 05 02:22:57 UTC 2024 - 3.4K bytes - Viewed (0) -
schema/utils_test.go
Registered: Sun Oct 27 09:35:08 UTC 2024 - Last Modified: Fri Jul 31 10:19:25 UTC 2020 - 1.5K bytes - Viewed (0) -
cmd/streaming-signature-v4.go
if cr.debug { fmt.Printf("want %q, got %q\n", "\r", string(b)) } cr.err = errMalformedEncoding return n, cr.err } b, err = cr.reader.ReadByte() if err == io.EOF { err = io.ErrUnexpectedEOF } if err != nil { cr.err = err return n, cr.err } if b != '\n' { if cr.debug { fmt.Printf("want %q, got %q\n", "\r", string(b)) } cr.err = errMalformedEncoding
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Thu May 16 23:13:47 UTC 2024 - 18.2K bytes - Viewed (0) -
src/bytes/bytes_test.go
{"aaaaaKKKK鄄", '鄄', 17}, {"aaKKKKKa\U000bc104", '\U000bc104', 18}, // cutover: 4 + n>>4 {"aaKKKKKa鄄", '鄄', 18}, } for _, tt := range tests { if got := IndexRune([]byte(tt.in), tt.rune); got != tt.want { t.Errorf("IndexRune(%q, %d) = %v; want %v", tt.in, tt.rune, got, tt.want) } } haystack := []byte("test世界") allocs := testing.AllocsPerRun(1000, func() { if i := IndexRune(haystack, 's'); i != 2 {
Registered: Tue Oct 29 11:13:09 UTC 2024 - Last Modified: Mon Aug 19 19:09:04 UTC 2024 - 61.2K bytes - Viewed (0) -
cmd/admin-handlers-users_test.go
c.Helper() rd, err := client.GetObject(ctx, bucket, "some-object", minio.GetObjectOptions{}) if err != nil { c.Fatalf("download did not succeed got %#v", err) } if _, err = io.Copy(io.Discard, rd); err != nil { c.Fatalf("download did not succeed got %#v", err) } } func (c *check) mustUploadReturnVersions(ctx context.Context, client *minio.Client, bucket string) []string { c.Helper()
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Sun Sep 22 00:33:43 UTC 2024 - 47.3K bytes - Viewed (0) -
internal/hash/checksum.go
return ChecksumNone, "" } } return t, s } checkType := func(c ChecksumType) { if got := h.Get(c.Key()); got != "" { // If already set, invalid if t != ChecksumNone { t = ChecksumInvalid s = "" } else { t = c s = got } return } } checkType(ChecksumCRC32) checkType(ChecksumCRC32C) checkType(ChecksumSHA1)
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Thu Sep 19 12:59:07 UTC 2024 - 12.7K bytes - Viewed (0)