Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for expectedNames (0.43 sec)

  1. internal/event/name_test.go

    		}
    
    		if !testCase.expectErr {
    			if !reflect.DeepEqual(name, testCase.expectedName) {
    				t.Fatalf("test %v: data: expected: %v, got: %v", i+1, testCase.expectedName, name)
    			}
    		}
    	}
    }
    
    func TestParseName(t *testing.T) {
    	var blankName Name
    
    	testCases := []struct {
    		s            string
    		expectedName Name
    		expectErr    bool
    	}{
    		{"s3:ObjectAccessed:*", ObjectAccessedAll, false},
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 01 01:11:10 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  2. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/analysis/PropertyTest.kt

        fun `if multiple property extractors have properties with the same name, first wins`() {
            val expectedName = "test"
            val schema = schemaFromTypes(
                MyReceiver::class,
                listOf(MyReceiver::class),
                propertyExtractor = testPropertyContributor(expectedName, typeOf<Int>()) + testPropertyContributor(expectedName, typeOf<String>())
            )
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 10:08:01 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. src/flag/flag_test.go

    	}
    }
    
    func TestGetters(t *testing.T) {
    	expectedName := "flag set"
    	expectedErrorHandling := ContinueOnError
    	expectedOutput := io.Writer(os.Stderr)
    	fs := NewFlagSet(expectedName, expectedErrorHandling)
    
    	if fs.Name() != expectedName {
    		t.Errorf("unexpected name: got %s, expected %s", fs.Name(), expectedName)
    	}
    	if fs.ErrorHandling() != expectedErrorHandling {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:38:24 UTC 2024
    - 22K bytes
    - Viewed (0)
  4. maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/OperatingSystemProfileActivator.java

            }
    
            boolean result = actualArch.equals(test);
    
            return reverse != result;
        }
    
        private boolean determineNameMatch(String expectedName, String actualName) {
            String test = expectedName.toLowerCase(Locale.ENGLISH);
            boolean reverse = false;
    
            if (test.startsWith("!")) {
                reverse = true;
                test = test.substring(1);
            }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Jun 05 14:16:41 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  5. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/profile/OperatingSystemProfileActivator.java

            }
    
            boolean result = actualArch.equals(test);
    
            return reverse != result;
        }
    
        private boolean determineNameMatch(String expectedName, String actualName) {
            String test = expectedName;
            boolean reverse = false;
    
            if (test.startsWith("!")) {
                reverse = true;
                test = test.substring(1);
            }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  6. pkg/test/framework/components/echo/match/matchers.go

    func AnyServiceName(expected echo.NamespacedNames) Matcher {
    	return func(instance echo.Instance) bool {
    		serviceName := instance.NamespacedName()
    		for _, expectedName := range expected {
    			if serviceName == expectedName {
    				return true
    			}
    		}
    		return false
    	}
    }
    
    // Namespace matches instances within the given namespace name.
    func Namespace(n namespace.Instance) Matcher {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  7. pkg/kubelet/server/server_test.go

    	fw := newServerTest()
    	defer fw.testHTTPServer.Close()
    
    	// method:path -> has coverage
    	expectedCases := map[string]bool{}
    
    	// Test all the non-web-service handlers
    	for _, path := range fw.serverUnderTest.restfulCont.RegisteredHandlePaths() {
    		expectedCases["GET:"+path] = false
    		expectedCases["POST:"+path] = false
    	}
    
    	// Test all the generated web-service paths
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  8. pkg/controller/job/job_controller_test.go

    		} else {
    			gotIndexes.Insert(ix)
    		}
    		expectedName := fmt.Sprintf("%s-%d", jobName, ix)
    		if expectedName != p.Spec.Hostname {
    			t.Errorf("Got pod hostname %s, want %s", p.Spec.Hostname, expectedName)
    		}
    		expectedName += "-"
    		if expectedName != p.GenerateName {
    			t.Errorf("Got pod generate name %s, want %s", p.GenerateName, expectedName)
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  9. pilot/pkg/networking/core/cluster_builder_test.go

    			Raw: map[string]any{
    				security.CredentialMetaDataName: "true",
    			},
    		},
    	}
    
    	cases := []struct {
    		name         string
    		expectedName string
    		expectedPath string
    	}{
    		{
    			name:         "uds",
    			expectedName: security.SDSExternalClusterName,
    			expectedPath: security.CredentialNameSocketPath,
    		},
    	}
    	for _, tt := range cases {
    		t.Run(tt.name, func(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 110.4K bytes
    - Viewed (0)
Back to top