Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestShouldTest (0.16 sec)

  1. src/cmd/internal/testdir/testdir_test.go

    func defaultRunOutputLimit() int {
    	const maxArmCPU = 2
    
    	cpu := runtime.NumCPU()
    	if runtime.GOARCH == "arm" && cpu > maxArmCPU {
    		cpu = maxArmCPU
    	}
    	return cpu
    }
    
    func TestShouldTest(t *testing.T) {
    	if *shard != 0 {
    		t.Skipf("nothing to test on shard index %d", *shard)
    	}
    
    	assert := func(ok bool, _ string) {
    		t.Helper()
    		if !ok {
    			t.Error("test case failed")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
Back to top