- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 126 for TestOr (0.16 sec)
-
src/cmd/compile/internal/test/testdata/short_test.go
func TestShortCircuit(t *testing.T) { testAnd(t, false, false, false) testAnd(t, false, true, false) testAnd(t, true, false, false) testAnd(t, true, true, true) testOr(t, false, false, false) testOr(t, false, true, true) testOr(t, true, false, true) testOr(t, true, true, true)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 23 06:40:04 UTC 2020 - 1.5K bytes - Viewed (0) -
src/cmp/cmp_test.go
t.Errorf("Less sort mismatch at %d in %v", i, input) } if cmp.Compare(input[i], input[i+1]) > 0 { t.Errorf("Compare sort mismatch at %d in %v", i, input) } } } func TestOr(t *testing.T) { cases := []struct { in []int want int }{ {nil, 0}, {[]int{0}, 0}, {[]int{1}, 1}, {[]int{0, 2}, 2}, {[]int{3, 0}, 3}, {[]int{4, 5}, 4},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 23:39:07 UTC 2024 - 3.9K bytes - Viewed (0) -
src/internal/runtime/atomic/atomic_test.go
<-done } // Check that the array has been totally set. for i, v := range a { if v != 0xff { t.Fatalf("a[%v] not fully set: want %#x, got %#x", i, uint8(0xff), v) } } } func TestOr(t *testing.T) { // Basic sanity check. x := uint32(0) for i := uint32(0); i < 32; i++ { atomic.Or(&x, 1<<i) if r := (uint32(1) << (i + 1)) - 1; x != r {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 8.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/registry/generic/testing/tester.go
t.tester = t.tester.ClusterScope() return t } func (t *Tester) Namer(namer func(int) string) *Tester { t.tester = t.tester.Namer(namer) return t } func (t *Tester) AllowCreateOnUpdate() *Tester { t.tester = t.tester.AllowCreateOnUpdate() return t } func (t *Tester) GeneratesName() *Tester { t.tester = t.tester.GeneratesName() return t } func (t *Tester) ReturnDeletedObject() *Tester {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 17 16:50:16 UTC 2019 - 4.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/PatternFilenameFilterTest.java
} public void testNulls() throws Exception { NullPointerTester tester = new NullPointerTester(); tester.testConstructors(PatternFilenameFilter.class, Visibility.PACKAGE); tester.testStaticMethods(PatternFilenameFilter.class, Visibility.PACKAGE); // currently none // The reason that we skip this method is discussed in a comment on the method. tester.ignore(PatternFilenameFilter.class.getMethod("accept", File.class, String.class));
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java
public class SettableFutureTest extends TestCase { private SettableFuture<String> future; private ListenableFutureTester tester; @Override protected void setUp() throws Exception { super.setUp(); future = SettableFuture.create(); tester = new ListenableFutureTester(future); tester.setUp(); } public void testDefaultState() throws Exception {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 7.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/PatternFilenameFilterTest.java
} public void testNulls() throws Exception { NullPointerTester tester = new NullPointerTester(); tester.testConstructors(PatternFilenameFilter.class, Visibility.PACKAGE); tester.testStaticMethods(PatternFilenameFilter.class, Visibility.PACKAGE); // currently none // The reason that we skip this method is discussed in a comment on the method. tester.ignore(PatternFilenameFilter.class.getMethod("accept", File.class, String.class));
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/HashingOutputStreamTest.java
} public void testChecksForNull() throws Exception { NullPointerTester tester = new NullPointerTester(); tester.testAllPublicInstanceMethods( new HashingOutputStream(Hashing.md5(), new ByteArrayOutputStream())); tester.testAllPublicStaticMethods(HashingOutputStream.class); tester.testAllPublicConstructors(HashingOutputStream.class); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Oct 02 16:24:50 UTC 2020 - 3.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/ParameterTest.java
} } } public void testEquals() { EqualsTester tester = new EqualsTester(); for (Method method : ParameterTest.class.getDeclaredMethods()) { for (Parameter param : Invokable.from(method).getParameters()) { tester.addEqualityGroup(param); } } tester.testEquals(); } @SuppressWarnings("unused") private void someMethod(int i, int j) {}
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Apr 06 02:06:03 UTC 2023 - 2K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/ParameterTest.java
} } } public void testEquals() { EqualsTester tester = new EqualsTester(); for (Method method : ParameterTest.class.getDeclaredMethods()) { for (Parameter param : Invokable.from(method).getParameters()) { tester.addEqualityGroup(param); } } tester.testEquals(); } @SuppressWarnings("unused") private void someMethod(int i, int j) {}
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Apr 06 02:06:03 UTC 2023 - 2K bytes - Viewed (0)