Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 38 of 38 for Test3 (0.03 sec)

  1. test/fixedbugs/issue13799.go

    	for iter := 0; ; iter++ {
    		if iter%50 == 0 {
    			fmt.Println(iter) // ERROR "iter escapes to heap$" "... argument does not escape$"
    		}
    		test1(iter)
    		test2(iter)
    		test3(iter)
    		test4(iter)
    		test5(iter)
    		test6(iter)
    	}
    }
    
    func test1(iter int) {
    
    	const maxI = 500
    	m := make(map[int][]int) // ERROR "make\(map\[int\]\[\]int\) escapes to heap$"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:50:24 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  2. cmd/site-replication_test.go

    			set.CreateStringSet("dep1", "dep2", "dep3"),
    			set.CreateStringSet("dep1", "dep2", "dep3", "dep4"),
    			[]string{},
    		},
    		// Test3: not currently under site replication.
    		{
    			[]madmin.PeerInfo{},
    			set.CreateStringSet(),
    			set.CreateStringSet("dep1", "dep2", "dep3", "dep4"),
    			[]string{},
    		},
    	}
    
    	for i, tc := range testCases {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 20 00:53:08 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  3. src/cmd/go/internal/gover/mod_test.go

    var isToolchainTests = []testCase1[string, bool]{
    	{"go", true},
    	{"toolchain", true},
    	{"anything", false},
    	{"golang.org/toolchain", false},
    }
    
    func TestModCompare(t *testing.T) { test3(t, modCompareTests, "ModCompare", ModCompare) }
    
    var modCompareTests = []testCase3[string, string, string, int]{
    	{"go", "1.2", "1.3", -1},
    	{"go", "v1.2", "v1.3", 0}, // equal because invalid
    	{"go", "1.2", "1.2", 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 25 17:51:28 UTC 2023
    - 2K bytes
    - Viewed (0)
  4. src/cmd/go/internal/gover/gover_test.go

    	t.Helper()
    	for _, tt := range tests {
    		if out := f(tt.in1, tt.in2); !reflect.DeepEqual(out, tt.out) {
    			t.Errorf("%s(%+v, %+v) = %+v, want %+v", name, tt.in1, tt.in2, out, tt.out)
    		}
    	}
    }
    
    func test3[In1, In2, In3, Out any](t *testing.T, tests []testCase3[In1, In2, In3, Out], name string, f func(In1, In2, In3) Out) {
    	t.Helper()
    	for _, tt := range tests {
    		if out := f(tt.in1, tt.in2, tt.in3); !reflect.DeepEqual(out, tt.out) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 23:20:32 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  5. pkg/log/uds_test.go

    		srv.messages = make([]string, 0)
    		yesterday := time.Now().Add(-time.Hour * 24).Truncate(time.Microsecond)
    		defaultScope.LogWithTime(InfoLevel, "test3", yesterday)
    		Sync()
    		// There should only be one message in the buffer
    		if got, want := len(srv.messages), 1; got != want {
    			t.Fatalf("number received log messages got %v want %v", got, want)
    		}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Nov 29 01:05:12 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  6. src/net/hosts_test.go

    	lookup, res string
    }{
    	// 127.0.0.1
    	{"test", "test"},
    	// 127.0.0.2
    	{"test2.example.com", "test2.example.com"},
    	{"2.test", "test2.example.com"},
    	// 127.0.0.3
    	{"test3.example.com", "3.test"},
    	{"3.test", "3.test"},
    	// 127.0.0.4
    	{"example.com", "example.com"},
    	// 127.0.0.5
    	{"test5.example.com", "test4.example.com"},
    	{"5.test", "test4.example.com"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 04 07:21:38 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/fs/FileSystemClientTest.java

            assertTrue(responseData.getUrl().endsWith("test/text%203.txt"));
            final String content = new String(InputStreamUtil.getBytes(responseData.getResponseBody()), "UTF-8");
            assertEquals("test3\n", content);
        }
    
        public void test_preprocessUri() {
            String value;
            String result;
    
            value = "file://test.txt";
            result = "file://test.txt";
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 8K bytes
    - Viewed (0)
  8. pkg/util/slice/slice_test.go

    	if !reflect.DeepEqual(src2, dest2) {
    		t.Errorf("%v and %v are not equal", src2, dest2)
    	}
    
    	src3 := []string{"a", "c", "b"}
    	dest3 := CopyStrings(src3)
    
    	if !reflect.DeepEqual(src3, dest3) {
    		t.Errorf("%v and %v are not equal", src3, dest3)
    	}
    
    	src3[0] = "A"
    	if reflect.DeepEqual(src3, dest3) {
    		t.Errorf("CopyStrings didn't make a copy")
    	}
    }
    
    func TestSortStrings(t *testing.T) {
    	src := []string{"a", "c", "b"}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 30 07:21:37 UTC 2022
    - 3.5K bytes
    - Viewed (0)
Back to top