Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for expectedDirs (0.32 sec)

  1. subprojects/core/src/testFixtures/groovy/org/gradle/api/file/FileVisitorUtil.groovy

        static void assertVisits(MinimalFileTree tree, Iterable<String> expectedFiles, Iterable<String> expectedDirs) {
            assertVisits(new FileTreeAdapter(tree, TestFiles.taskDependencyFactory(), TestFiles.patternSetFactory), expectedFiles, expectedDirs)
        }
    
        static void assertVisits(FileTree tree, Iterable<String> expectedFiles, Iterable<String> expectedDirs) {
            Set files = [] as Set
            Set dirs = [] as Set
            FileVisitor visitor = [
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 22 14:26:33 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  2. pkg/volume/util/subpath/subpath_linux_test.go

    		if existingPath != fullExpectedPath {
    			t.Errorf("test %q: expected path %q, got %q", test.name, fullExpectedPath, existingPath)
    		}
    		if !reflect.DeepEqual(dirs, test.expectedDirs) {
    			t.Errorf("test %q: expected dirs %v, got %v", test.name, test.expectedDirs, dirs)
    		}
    		os.RemoveAll(base)
    	}
    }
    
    func validateDirEmpty(dir string) error {
    	files, err := ioutil.ReadDir(dir)
    	if err != nil {
    		return err
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 10 16:52:55 UTC 2021
    - 37.3K bytes
    - Viewed (0)
  3. pkg/proxy/apis/config/validation/validation_test.go

    		ccc          componentbaseconfig.ClientConnectionConfiguration
    		expectedErrs field.ErrorList
    	}{
    		"successful 0 value": {
    			ccc:          componentbaseconfig.ClientConnectionConfiguration{Burst: 0},
    			expectedErrs: field.ErrorList{},
    		},
    		"successful 5 value": {
    			ccc:          componentbaseconfig.ClientConnectionConfiguration{Burst: 5},
    			expectedErrs: field.ErrorList{},
    		},
    		"burst < 0": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  4. clause/expression_test.go

    			}
    
    			if !reflect.DeepEqual(result.ExpectedVars, stmt.Vars) {
    				t.Errorf("generated vars is not equal, expects %v, but got %v", result.ExpectedVars, stmt.Vars)
    			}
    		})
    	}
    }
    
    func TestExpression(t *testing.T) {
    	column := "column-name"
    	results := []struct {
    		Expressions  []clause.Expression
    		ExpectedVars []interface{}
    		Result       string
    	}{{
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Thu Aug 10 05:34:33 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/api/validation/objectmeta_test.go

    		if len(errs) != len(tc.ExpectedErrs) {
    			t.Logf("%s: Expected: %#v", k, tc.ExpectedErrs)
    			for _, err := range errs {
    				errList = append(errList, err.Error())
    			}
    			t.Logf("%s: Got: %#v", k, errList)
    			t.Errorf("%s: expected %d errors, got %d", k, len(tc.ExpectedErrs), len(errs))
    			continue
    		}
    		for i := range errList {
    			if errList[i] != tc.ExpectedErrs[i] {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 07 03:12:31 UTC 2022
    - 17.8K bytes
    - Viewed (0)
  6. pkg/apis/networking/validation/validation_test.go

    			if len(errs) != len(testCase.expectedErrs) {
    				t.Fatalf("Expected %d errors, got %d (%+v)", len(testCase.expectedErrs), len(errs), errs)
    			}
    
    			for i, err := range errs {
    				if err.Error() != testCase.expectedErrs[i].Error() {
    					t.Fatalf("Expected error: %v, got %v", testCase.expectedErrs[i], err)
    				}
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:06 UTC 2023
    - 73.3K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/CertificatePinnerKotlinTest.kt

        val certificatePinner = builder.build()
    
        val expectedPins =
          listOf(
            Pin("example.com", CertificatePinnerTest.certA1Sha256Pin),
            Pin("www.example.com", CertificatePinnerTest.certA1Sha256Pin),
          )
    
        assertEquals(expectedPins, builder.pins)
        assertEquals(expectedPins.toSet(), certificatePinner.pins)
      }
    
      companion object {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  8. security/pkg/pki/util/san_test.go

    	})
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	testCases := map[string]struct {
    		exts           []pkix.Extension
    		expectedIDs    []string
    		expectedErrMsg string
    	}{
    		"Empty extension list": {
    			exts:           []pkix.Extension{},
    			expectedIDs:    nil,
    			expectedErrMsg: "the SAN extension does not exist",
    		},
    		"Extensions without SAN": {
    			exts: []pkix.Extension{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Feb 12 17:36:33 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  9. pkg/registry/core/service/ipallocator/controller/repairip_test.go

    }
    
    func TestRepairServiceIP(t *testing.T) {
    	tests := []struct {
    		name        string
    		svcs        []*v1.Service
    		ipAddresses []*networkingv1alpha1.IPAddress
    		cidrs       []*networkingv1alpha1.ServiceCIDR
    		expectedIPs []string
    		actions     [][]string // verb and resource
    		events      []string
    	}{
    		{
    			name: "no changes needed single stack",
    			svcs: []*v1.Service{newService("test-svc", []string{"10.0.1.1"})},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:06 UTC 2023
    - 20.3K bytes
    - Viewed (0)
  10. okhttp-testing-support/src/main/kotlin/okhttp3/internal/http/RecordingProxySelector.kt

      private val failures = mutableListOf<String>()
    
      override fun select(uri: URI): List<Proxy> {
        requestedUris.add(uri)
        return proxies
      }
    
      fun assertRequests(vararg expectedUris: URI?) {
        assertThat(requestedUris).containsExactly(*expectedUris)
        requestedUris.clear()
      }
    
      override fun connectFailed(
        uri: URI,
        sa: SocketAddress,
        ioe: IOException,
      ) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top