Search Options

Results per page
Sort
Preferred Languages
Advance

Results 391 - 400 of 1,270 for expectEq (0.06 sec)

  1. internal/s3select/jstream/scanner_test.go

    		c := scanner.next()
    		if c == byte(0) {
    			break
    		}
    		if c != mockData {
    			t.Fatalf("expected \"%s\", got \"%s\"", string(mockData), string(c))
    		}
    		i++
    	}
    	c := scanner.next()
    	if scanner.readerErr == nil {
    		t.Fatalf("failed to receive expected error after %d bytes", failAfter)
    	}
    	if c != byte(0) {
    		t.Fatalf("expected null byte, got %v", c)
    	}
    }
    
    func BenchmarkBufioScanner(b *testing.B) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountConditionallyTester.java

    public class MultisetSetCountConditionallyTester<E> extends AbstractMultisetSetCountTester<E> {
      @Override
      void setCountCheckReturnValue(E element, int count) {
        assertTrue(
            "setCount() with the correct expected present count should return true",
            setCount(element, count));
      }
    
      @Override
      void setCountNoCheckReturnValue(E element, int count) {
        setCount(element, count);
      }
    
      @CanIgnoreReturnValue
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. cmd/erasure-object_test.go

    			if tt.expectedError != nil && err == nil {
    				t.Errorf("Expected %s, got %s", tt.expectedError, err)
    			}
    			if tt.expectedError == nil && err != nil {
    				t.Errorf("Expected %s, got %s", tt.expectedError, err)
    			}
    			if tt.expectedReadQuorum != actualReadQuorum {
    				t.Errorf("Expected Read Quorum %d, got %d", tt.expectedReadQuorum, actualReadQuorum)
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/TestPlatform.java

          fail();
        } catch (TimeoutException expected) {
        } catch (ExecutionException e) {
          throw new AssertionError(e);
        }
      }
    
      static void verifyTimedGetOnPendingFuture(Future<?> future) {
        try {
          getUninterruptibly(future, 0, SECONDS);
          fail();
        } catch (TimeoutException expected) {
        } catch (ExecutionException e) {
          throw new AssertionError(e);
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

        try {
          entrySet.add((Entry<K, V>) entryToAdd);
          fail("Expected UnsupportedOperationException or NullPointerException.");
        } catch (UnsupportedOperationException | NullPointerException e) {
          // Expected.
        }
        assertInvariants(map);
    
        try {
          entrySet.addAll(singleton((Entry<K, V>) entryToAdd));
          fail("Expected UnsupportedOperationException or NullPointerException.");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  6. tests/create_test.go

    	user := *GetUser("create", Config{})
    
    	if results := DB.Create(&user); results.Error != nil {
    		t.Fatalf("errors happened when create: %v", results.Error)
    	} else if results.RowsAffected != 1 {
    		t.Fatalf("rows affected expects: %v, got %v", 1, results.RowsAffected)
    	}
    
    	if user.ID == 0 {
    		t.Errorf("user's primary key should has value after create, got : %v", user.ID)
    	}
    
    	if user.CreatedAt.IsZero() {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Mar 19 03:50:28 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  7. cmd/common-main.go

    			Skip: true,
    		}, nil
    	}
    	envTokens := strings.SplitN(strings.TrimSpace(strings.TrimPrefix(envEntry, "export")), config.EnvSeparator, 2)
    	if len(envTokens) != 2 {
    		return envKV{}, fmt.Errorf("envEntry malformed; %s, expected to be of form 'KEY=value'", envEntry)
    	}
    
    	key := envTokens[0]
    	val := envTokens[1]
    
    	// Remove quotes from the value if found
    	if len(val) >= 2 {
    		quote := val[0]
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 21:50:11 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  8. .github/ISSUE_TEMPLATE/bug_report.md

    **To Reproduce**
    Steps to reproduce the behavior:
    1. Go to '...'
    2. Click on '....'
    3. Scroll down to '....'
    4. See error
    
    **Expected behavior**
    A clear and concise description of what you expected to happen.
    
    **Screenshots**
    If applicable, add screenshots to help explain your problem.
    
    **Environment (please complete the following information):**
     - OS: [e.g. Windows 10]
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Aug 17 22:53:30 UTC 2020
    - 782 bytes
    - Viewed (0)
  9. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/HpackDecodeTestBase.kt

          }
          return result
        }
    
        /**
         * Checks if `expected` and `observed` are equal when viewed as a set and headers are
         * deduped.
         *
         * TODO: See if duped headers should be preserved on decode and verify.
         */
        private fun assertSetEquals(
          message: String,
          expected: List<Header>,
          observed: List<Header>,
        ) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  10. cmd/policy_test.go

    		expectErr := (err != nil)
    
    		if expectErr != testCase.expectErr {
    			t.Fatalf("case %v: error: expected: %v, got: %v\n", i+1, testCase.expectErr, expectErr)
    		}
    
    		if !testCase.expectErr {
    			if !reflect.DeepEqual(result, testCase.expectedResult) {
    				t.Fatalf("case %v: result: expected: %+v, got: %+v\n", i+1, testCase.expectedResult, result)
    			}
    		}
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top