Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for expectedNames (0.27 sec)

  1. tensorflow/cc/saved_model/bundle_v2_test.cc

    class BundleV2Test : public ::testing::Test {
     protected:
      BundleV2Test() {}
    
      void RestoreVarsAndVerify(SavedModelV2Bundle* bundle,
                                std::vector<std::string> expected_names) {
        // Collect saved_node_id, full_name, checkpoint_key into a vector.
        using RestoredVarType = std::tuple<int, std::string, std::string>;
        std::vector<RestoredVarType> restored_vars;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 12 17:51:15 UTC 2023
    - 6K bytes
    - Viewed (0)
  2. pkg/kubeapiserver/authorizer/config.go

    		if string(authorizer.Type) == modes.ModeWebhook {
    			continue
    		}
    		seenModes.Insert(authorizer.Type)
    
    		expectedName := GetNameForAuthorizerMode(string(authorizer.Type))
    		if expectedName != authorizer.Name {
    			allErrors = append(allErrors, fmt.Errorf("expected name %s for authorizer %s instead of %s", expectedName, authorizer.Type, authorizer.Name))
    		}
    
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 8K 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. operator/pkg/object/objects_test.go

    					t.Errorf("error reading test data file: %v", err)
    				}
    				expectedYAMLs := strings.Split(string(expectedYAML), "---")
    				if len(expectedYAMLs) != len(objects) {
    					t.Errorf("expected %d objects, got %d", len(expectedYAMLs), len(objects))
    				}
    				for i, obj := range objects {
    					assert.Equal(t, true, compareYAMLContent(string(obj.yaml), expectedYAMLs[i]))
    				}
    			}
    		})
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Sep 21 07:16:46 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. pkg/controller/history/controller_history_test.go

    				t.Errorf("%s: wanted rename got %s %s", test.name, created.Name, test.revision.Name)
    			}
    			expectedName := ControllerRevisionName(test.parent.GetName(), HashControllerRevision(test.revision, &collisionCount))
    			if created.Name != expectedName {
    				t.Errorf("%s: on name collision wanted new name %s got %s", test.name, expectedName, created.Name)
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 21 13:31:28 UTC 2023
    - 49.1K bytes
    - Viewed (0)
  10. 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)
Back to top