Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 414 for wantRm (0.14 sec)

  1. test/fixedbugs/issue4562.go

    		_, file, line, ok := runtime.Caller(i)
    		if !ok {
    			panic("cannot find issue4562.go on stack")
    		}
    		if strings.HasSuffix(file, "issue4562.go") {
    			if line != expectLine {
    				panic(fmt.Sprintf("crashed at line %d, wanted line %d", line, expectLine))
    			}
    			break
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 881 bytes
    - Viewed (0)
  2. test/fixedbugs/issue28748.go

    	defer func() {
    		e := recover()
    		if e == nil {
    			panic("should have panicked")
    		}
    		text := fmt.Sprintf("%s", e) // handles both string and runtime.errorString
    		if !strings.HasPrefix(text, "reflect:") {
    			panic("wanted a reflect error, got this instead:\n" + text)
    		}
    	}()
    	r := reflect.MakeFunc(reflect.TypeOf(func() error { return nil }),
    		func(args []reflect.Value) []reflect.Value {
    			var x [1]reflect.Value
    			return x[:]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 21:23:29 UTC 2019
    - 712 bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

      TF_EXPECT_OK(ReadCache(&cache1, want_filename, want_offset, want_n, &out));
      EXPECT_EQ(calls, 1);
      TF_EXPECT_OK(ReadCache(&cache2, want_filename, want_offset, want_n, &out));
      EXPECT_EQ(calls, 2);
      TF_EXPECT_OK(ReadCache(&cache3, want_filename, want_offset, want_n, &out));
      EXPECT_EQ(calls, 3);
      TF_EXPECT_OK(ReadCache(&cache4, want_filename, want_offset, want_n, &out));
      EXPECT_EQ(calls, 4);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 15 03:16:57 UTC 2021
    - 23.2K bytes
    - Viewed (0)
  4. cmd/tier-last-day-stats_gen.go

    				var zb0006 uint32
    				zb0006, err = dc.ReadArrayHeader()
    				if err != nil {
    					err = msgp.WrapError(err, zb0001, "Bins")
    					return
    				}
    				if zb0006 != uint32(24) {
    					err = msgp.ArrayError{Wanted: uint32(24), Got: zb0006}
    					return
    				}
    				for zb0003 := range zb0002.Bins {
    					err = zb0002.Bins[zb0003].DecodeMsg(dc)
    					if err != nil {
    						err = msgp.WrapError(err, zb0001, "Bins", zb0003)
    						return
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Mar 21 17:21:35 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  5. pkg/controller/util/selectors/bimultimap_test.go

    		if !unorderedEqual(want, got) {
    			return fmt.Errorf("reverse select %v wanted %v. got %v.", key, want, got)
    		}
    		return nil
    	}
    }
    
    func emptyMap(m *BiMultimap) error {
    	if len(m.labeledObjects) != 0 {
    		return fmt.Errorf("Found %v labeledObjects. Wanted none.", len(m.labeledObjects))
    	}
    	if len(m.selectingObjects) != 0 {
    		return fmt.Errorf("Found %v selectingObjects. Wanted none.", len(m.selectingObjects))
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 13 01:56:36 UTC 2022
    - 16.9K bytes
    - Viewed (0)
  6. cmd/last-minute_gen.go

    	var zb0001 uint32
    	zb0001, err = dc.ReadArrayHeader()
    	if err != nil {
    		err = msgp.WrapError(err)
    		return
    	}
    	if zb0001 != uint32(sizeLastElemMarker) {
    		err = msgp.ArrayError{Wanted: uint32(sizeLastElemMarker), Got: zb0001}
    		return
    	}
    	for za0001 := range z {
    		var field []byte
    		_ = field
    		var zb0002 uint32
    		zb0002, err = dc.ReadMapHeader()
    		if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jul 05 21:45:49 UTC 2022
    - 17.2K bytes
    - Viewed (0)
  7. src/crypto/sha256/fallback_test.go

    		"338c86e2f7d8d1ddc2d89d332dd9d76c"
    	if _, err := io.WriteString(c, in); err != nil {
    		t.Fatalf("could not write to c: %v", err)
    	}
    	out := fmt.Sprintf("%x", c.Sum(nil))
    	if out != gold {
    		t.Fatalf("mismatch: got %s, wanted %s", out, gold)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 894 bytes
    - Viewed (0)
  8. test/abi/struct_3_string_input.go

    	return x.a + " " + x.b + " " + x.c
    }
    
    func main() {
    	s := H(toobig{"Hello", "there,", "World"})
    	gotVsWant(s, "Hello there, World")
    }
    
    func gotVsWant(got, want string) {
    	if got != want {
    		fmt.Printf("FAIL, got %s, wanted %s\n", got, want)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 727 bytes
    - Viewed (0)
  9. istioctl/pkg/cli/context_test.go

    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.description, func(t *testing.T) {
    			gotNs := handleNamespace(tt.namespace, tt.defaultNamespace)
    			if gotNs != tt.wantNamespace {
    				t.Fatalf("unexpected namespace: wanted %v got %v", tt.wantNamespace, gotNs)
    			}
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 09 18:17:49 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  10. test/abi/too_big_to_ssa.go

    	gotVsWant(s, "Hello there, World")
    	fmt.Println(s)
    	t := H(I("Ahoy", "there,", "Matey"))
    	gotVsWant(t, "Ahoy there, Matey")
    	fmt.Println(t)
    }
    
    func gotVsWant(got, want string) {
    	if got != want {
    		fmt.Printf("FAIL, got %s, wanted %s\n", got, want)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 833 bytes
    - Viewed (0)
Back to top