Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 69 for testAll (0.13 sec)

  1. src/crypto/aes/aes_test.go

    		}
    
    		// i *= x in GF(2) modulo the polynomial
    		i <<= 1
    		if i&0x100 != 0 {
    			i ^= poly
    		}
    	}
    	return s
    }
    
    // Test all mul inputs against bit-by-bit n² algorithm.
    func TestMul(t *testing.T) {
    	for i := uint32(0); i < 256; i++ {
    		for j := uint32(0); j < 256; j++ {
    			// Multiply i, j bit by bit.
    			s := uint8(0)
    			for k := uint(0); k < 8; k++ {
    				for l := uint(0); l < 8; l++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 14:58:19 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/topologymanager/bitmask/bitmask_test.go

    		mask, _ := NewBitMask(tc.mask...)
    		mask.Clear()
    		if mask.String() != string(tc.clearedMask) {
    			t.Errorf("Expected mask to be %v, got %v", tc.clearedMask, mask)
    		}
    	}
    }
    
    func TestFill(t *testing.T) {
    	tcases := []struct {
    		name       string
    		mask       []int
    		filledMask string
    	}{
    		{
    			name:       "Fill empty mask",
    			mask:       nil,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 09:45:09 UTC 2022
    - 16.2K bytes
    - Viewed (0)
  3. android/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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. android/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: Wed Feb 09 22:57:07 UTC 2022
    - 30.9K bytes
    - Viewed (0)
  9. 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)
  10. pkg/controller/volume/persistentvolume/binder_test.go

    	"k8s.io/klog/v2/ktesting"
    )
    
    // Test single call to syncClaim and syncVolume methods.
    //  1. Fill in the controller with initial data
    //  2. Call the tested function (syncClaim/syncVolume) via
    //     controllerTest.testCall *once*.
    //  3. Compare resulting volumes and claims with expected volumes and claims.
    func TestSync(t *testing.T) {
    	labels := map[string]string{
    		"foo": "true",
    		"bar": "false",
    	}
    
    	tests := []controllerTest{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:37:30 UTC 2023
    - 65.8K bytes
    - Viewed (0)
Back to top