Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 43 for testAll (0.21 sec)

  1. src/expvar/expvar_test.go

    // This is for tests only.
    func RemoveAll() {
    	vars.keysMu.Lock()
    	defer vars.keysMu.Unlock()
    	for _, k := range vars.keys {
    		vars.m.Delete(k)
    	}
    	vars.keys = nil
    }
    
    func TestNil(t *testing.T) {
    	RemoveAll()
    	val := Get("missing")
    	if val != nil {
    		t.Errorf("got %v, want nil", val)
    	}
    }
    
    func TestInt(t *testing.T) {
    	RemoveAll()
    	reqs := NewInt("requests")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:46:19 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

      /* The names of the expected method that tests null checks. */
      private static final ImmutableList<String> NULL_TEST_METHOD_NAMES =
          ImmutableList.of(
              "testNulls", "testNull",
              "testNullPointers", "testNullPointer",
              "testNullPointerExceptions", "testNullPointerException");
    
      /* The names of the expected method that tests serializable. */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

              public void tearDown() {
                Thread.interrupted();
              }
            });
      }
    
      @Override
      protected void tearDown() {
        tearDownStack.runTearDown();
      }
    
      public void testNull() throws Exception {
        new NullPointerTester()
            .setDefault(CountDownLatch.class, new CountDownLatch(0))
            .setDefault(Semaphore.class, new Semaphore(999))
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 16:06:39 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  4. src/math/big/nat_test.go

    	for _, n := range mulBenchSizes {
    		if isRaceBuilder && n > 1e3 {
    			continue
    		}
    		b.Run(fmt.Sprintf("%d", n), func(b *testing.B) {
    			benchmarkNatMul(b, n)
    		})
    	}
    }
    
    func TestNLZ(t *testing.T) {
    	var x Word = _B >> 1
    	for i := 0; i <= _W; i++ {
    		if int(nlz(x)) != i {
    			t.Errorf("failed at %x: got %d want %d", x, nlz(x), i)
    		}
    		x >>= 1
    	}
    }
    
    type shiftTest struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 09 15:29:36 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  5. src/bytes/buffer_test.go

    func TestCapWithSliceAndWrittenData(t *testing.T) {
    	buf := NewBuffer(make([]byte, 0, 10))
    	buf.Write([]byte("test"))
    	n := buf.Cap()
    	if n != 10 {
    		t.Errorf("expected 10, got %d", n)
    	}
    }
    
    func TestNil(t *testing.T) {
    	var b *Buffer
    	if b.String() != "<nil>" {
    		t.Errorf("expected <nil>; got %q", b.String())
    	}
    }
    
    func TestReadFrom(t *testing.T) {
    	var buf Buffer
    	for i := 3; i < 30; i += 3 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:31:36 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  6. src/image/draw/draw_test.go

    	Draw(a, image.Rect(0, 0, 1, 1), b, image.Pt(1, 1), Over)
    	if !eq(color.RGBA{5, 0, 0, 5}, a.At(0, 0)) {
    		t.Errorf("non-zero src pt: want %v got %v", color.RGBA{5, 0, 0, 5}, a.At(0, 0))
    	}
    }
    
    func TestFill(t *testing.T) {
    	rr := []image.Rectangle{
    		image.Rect(0, 0, 0, 0),
    		image.Rect(0, 0, 40, 30),
    		image.Rect(10, 0, 40, 30),
    		image.Rect(0, 20, 40, 30),
    		image.Rect(10, 20, 40, 30),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:07:05 UTC 2023
    - 26K bytes
    - Viewed (0)
  7. pkg/controller/volume/persistentvolume/provision_test.go

    }
    
    // Test multiple calls to syncClaim/syncVolume and periodic sync of all
    // volume/claims. The test follows this pattern:
    //  0. Load the controller with initial data.
    //  1. Call controllerTest.testCall() once as in TestSync()
    //  2. For all volumes/claims changed by previous syncVolume/syncClaim calls,
    //     call appropriate syncVolume/syncClaim (simulating "volume/claim changed"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/util/wait/wait_test.go

    				}
    			}
    		}()
    		return ch
    	}
    }
    
    func (fp *fakePoller) GetwaitFunc() waitFunc {
    	fp.wg.Add(1)
    	return fakeTicker(fp.max, &fp.used, fp.wg.Done)
    }
    
    func TestPoll(t *testing.T) {
    	invocations := 0
    	f := ConditionWithContextFunc(func(ctx context.Context) (bool, error) {
    		invocations++
    		return true, nil
    	})
    	fp := fakePoller{max: 1}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  9. src/math/big/int_test.go

    }
    
    func checkMul(a, b []byte) bool {
    	var x, y, z1 Int
    	x.SetBytes(a)
    	y.SetBytes(b)
    	z1.Mul(&x, &y)
    
    	var z2 Int
    	z2.SetBytes(mulBytes(a, b))
    
    	return z1.Cmp(&z2) == 0
    }
    
    func TestMul(t *testing.T) {
    	if err := quick.Check(checkMul, nil); err != nil {
    		t.Error(err)
    	}
    }
    
    var mulRangesZ = []struct {
    	a, b int64
    	prod string
    }{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go

    	for i, test := range tests {
    		test.a.Add(test.b)
    		if test.a.Cmp(test.expected) != 0 {
    			t.Errorf("[%d] Expected %q, got %q", i, test.expected.String(), test.a.String())
    		}
    	}
    }
    
    func TestMul(t *testing.T) {
    	tests := []struct {
    		a        Quantity
    		b        int64
    		expected Quantity
    		ok       bool
    	}{
    		{decQuantity(10, 0, DecimalSI), 10, decQuantity(100, 0, DecimalSI), true},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 49.4K bytes
    - Viewed (0)
Back to top