Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 188 for testcalls (0.11 sec)

  1. internal/ioutil/ioutil_test.go

    	}
    
    	expected := "aaaaaaaaaabbbbbbbbbb"
    	if string(b) != expected {
    		t.Errorf("AppendFile() failed, expected: %s, got %s", expected, string(b))
    	}
    }
    
    func TestSkipReader(t *testing.T) {
    	testCases := []struct {
    		src      io.Reader
    		skipLen  int64
    		expected string
    	}{
    		{bytes.NewBuffer([]byte("")), 0, ""},
    		{bytes.NewBuffer([]byte("")), 1, ""},
    		{bytes.NewBuffer([]byte("abc")), 0, "abc"},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. cmd/object-api-multipart_test.go

    	}
    
    	obj.DeleteBucket(context.Background(), "abc", DeleteBucketOptions{})
    
    	// Collection of non-exhaustive PutObjectPart test cases, valid errors
    	// and success responses.
    	testCases := []struct {
    		bucketName      string
    		objName         string
    		uploadID        string
    		PartID          int
    		inputReaderData string
    		inputMd5        string
    		inputSHA256     string
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 09:42:21 UTC 2024
    - 88.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/PatternFilenameFilterTest.java

        assertTrue(filter.accept(dir, "aaaa"));
        assertFalse(filter.accept(dir, "b"));
    
        // Show that dir is ignored
        assertTrue(filter.accept(null, "a"));
      }
    
      public void testNulls() throws Exception {
        NullPointerTester tester = new NullPointerTester();
    
        tester.testConstructors(PatternFilenameFilter.class, Visibility.PACKAGE);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 2K bytes
    - Viewed (0)
  4. android/guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java

        assertNotNull(generator.generateFresh(Currency.class));
      }
    
      public void testNulls() throws Exception {
        new ClassSanityTester()
            .setDefault(Method.class, FreshValueGeneratorTest.class.getDeclaredMethod("testNulls"))
            .testNulls(FreshValueGenerator.class);
      }
    
      private static void assertFreshInstances(Class<?>... types) {
        for (Class<?> type : types) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 17.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/ExecutionListTest.java

        }
      }
    
      public void testExceptionsCaught() {
        list.add(THROWING_RUNNABLE, directExecutor());
        list.execute();
        list.add(THROWING_RUNNABLE, directExecutor());
      }
    
      public void testNulls() {
        new NullPointerTester().testAllPublicInstanceMethods(new ExecutionList());
      }
    
      private static final Runnable THROWING_RUNNABLE =
          new Runnable() {
            @Override
            public void run() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  6. cmd/os-readdir_test.go

    	}
    }
    
    func TestReadDirN(t *testing.T) {
    	testCases := []struct {
    		numFiles    int
    		n           int
    		expectedNum int
    	}{
    		{0, 0, 0},
    		{0, 1, 0},
    		{1, 0, 0},
    		{0, -1, 0},
    		{1, -1, 1},
    		{10, -1, 10},
    		{1, 1, 1},
    		{2, 1, 1},
    		{10, 9, 9},
    		{10, 10, 10},
    		{10, 11, 10},
    	}
    
    	for i, testCase := range testCases {
    		dir := t.TempDir()
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 7.5K bytes
    - Viewed (0)
  7. cmd/object-api-listobjects_test.go

    				t.Fatalf("Expected, marker %t : got %t", object.addDeleteMarker, oi.DeleteMarker)
    			}
    		}
    	}
    
    	// Formulating the result data set to be expected from ListObjects call inside the tests,
    	// This will be used in testCases and used for asserting the correctness of ListObjects output in the tests.
    
    	resultCases := []ListObjectsInfo{
    		{
    			IsTruncated: false,
    			Prefixes:    []string{"unique/folder/"},
    		},
    		{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 01 11:07:40 UTC 2024
    - 73.1K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

     *
     * <p>And all the created {@code Book} instances can be tested with:
     *
     * <pre>
     * new ClassSanityTester()
     *     .forAllPublicStaticMethods(Books.class)
     *     .thatReturn(Book.class)
     *     .testEquals(); // or testNulls(), testSerializable() etc.
     * </pre>
     *
     * @author Ben Yu
     * @since 14.0
     */
    @GwtIncompatible
    @J2ktIncompatible
    public final class ClassSanityTester {
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:18:12 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/collection/LruHashMapTest.java

    import java.util.Iterator;
    
    import org.junit.Test;
    
    /**
     * @author taichi
     */
    public class LruHashMapTest {
    
        /**
         * @throws Exception
         */
        @Test
        public void testAll() throws Exception {
            final LruHashMap<String, String> lru = new LruHashMap<String, String>(3);
            lru.put("aaa", "111");
            lru.put("bbb", "222");
            lru.put("ccc", "333");
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/SortedListsTest.java

                  presentBehavior,
                  absentBehavior);
            }
          }
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testNulls() {
        new NullPointerTester().testAllPublicStaticMethods(SortedLists.class);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 4K bytes
    - Viewed (0)
Back to top