Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 188 for testcalls (0.1 sec)

  1. android/guava-tests/test/com/google/common/io/SourceSinkTester.java

        }
      }
    
      @Override
      public void tearDown() throws IOException {
        factory.tearDown();
      }
    
      static ImmutableList<Method> getTestMethods(Class<?> testClass) {
        List<Method> result = Lists.newArrayList();
        for (Method method : testClass.getDeclaredMethods()) {
          if (Modifier.isPublic(method.getModifiers())
              && method.getReturnType() == void.class
              && method.getParameterTypes().length == 0
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 27 18:57:08 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  2. cmd/bucket-policy-handlers_test.go

    			t.Fatalf("Case %d: Expected the response status to be `%d`, but instead found `%d`", i+1, testPolicy.expectedRespStatus, recV4.Code)
    		}
    	}
    
    	// testcases with input and expected output for DeleteBucketPolicyHandler.
    	testCases := []struct {
    		bucketName string
    		accessKey  string
    		secretKey  string
    		// expected response.
    		expectedRespStatus int
    	}{
    		// Test case - 1.
    		{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  3. cmd/xl-storage-format-v2_test.go

    	// Subsequently deleting fileInfos[6].versionID should return fileInfos[6].dataDir since there are no other object versions sharing this data dir.
    	count := len(testCases)
    	for i := 4; i < len(testCases); i++ {
    		tc := testCases[i]
    		dataDir, err := xl.DeleteVersion(fileInfos[i])
    		failOnErr(count+1, err)
    		if dataDir != tc.expectedDataDir {
    			t.Fatalf("Expected %s but got %s", tc.expectedDataDir, dataDir)
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Mar 08 17:50:48 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  4. internal/bucket/lifecycle/filter_test.go

    	"testing"
    
    	"github.com/dustin/go-humanize"
    )
    
    // TestUnsupportedFilters checks if parsing Filter xml with
    // unsupported elements returns appropriate errors
    func TestUnsupportedFilters(t *testing.T) {
    	testCases := []struct {
    		inputXML    string
    		expectedErr error
    	}{
    		{ // Filter with And tags
    			inputXML: ` <Filter>
    						<And>
    							<Prefix>key-prefix</Prefix>
    						</And>
    						</Filter>`,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Feb 27 00:01:20 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  5. internal/bucket/versioning/versioning_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package versioning
    
    import (
    	"encoding/xml"
    	"strings"
    	"testing"
    )
    
    func TestParseConfig(t *testing.T) {
    	testcases := []struct {
    		input            string
    		err              error
    		excludedPrefixes []string
    		excludeFolders   bool
    	}{
    		{
    			input: `<VersioningConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun May 08 05:06:44 UTC 2022
    - 8.8K bytes
    - Viewed (0)
  6. cmd/streaming-signature-v4_test.go

    		bytes.NewReader([]byte("1000;")),
    		// Test - 3
    		bytes.NewReader([]byte(fmt.Sprintf("%4097d", 1))),
    		// Test - 4
    		bytes.NewReader([]byte("1000;chunk-signature=111123333333333333334444211\r\n")),
    	}
    	testCases := []testCase{
    		// Test - 1 - small bufio reader.
    		{
    			bufio.NewReaderSize(readers[0], 16),
    			errLineTooLong,
    			nil,
    			nil,
    		},
    		// Test - 2 - unexpected end of the reader.
    		{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 5.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/LongAdderTest.java

       * version, which checks package-private methods that we don't want to have to annotate as {@code
       * Nullable} because we don't want diffs from jsr166e.
       */
      public void testNulls() {}
    
      public void testOverflows() {
        LongAdder longAdder = new LongAdder();
        longAdder.add(Long.MAX_VALUE);
        assertThat(longAdder.sum()).isEqualTo(Long.MAX_VALUE);
        longAdder.add(1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 09 04:11:29 UTC 2019
    - 1.4K bytes
    - Viewed (0)
  8. 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
    - 18.4K bytes
    - Viewed (0)
  9. internal/bucket/lifecycle/lifecycle_test.go

    		},
    	}
    
    	for i, tc := range testCases {
    		t.Run(fmt.Sprintf("Test %d", i+1), func(t *testing.T) {
    			got := ExpectedExpiryTime(tc.modTime, int(tc.days))
    			if !got.Equal(tc.expected) {
    				t.Fatalf("Expected %v to be equal to %v", got, tc.expected)
    			}
    		})
    	}
    }
    
    func TestEval(t *testing.T) {
    	testCases := []struct {
    		inputConfig            string
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/tests/ConcurrencyTest.java

    
        private void runMultiTestCase ( List<? extends MultiTestCase> testcases, int timeoutSecs ) throws InterruptedException {
            for ( Runnable r : testcases ) {
                this.executor.submit(r);
            }
            this.executor.shutdown();
            this.executor.awaitTermination(timeoutSecs, TimeUnit.SECONDS);
            for ( MultiTestCase r : testcases ) {
                assertTrue("Have not completed", r.completed);
            }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Nov 14 17:40:50 UTC 2021
    - 17.6K bytes
    - Viewed (0)
Back to top