Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 144 for expected_outputs (0.27 sec)

  1. cmd/kubeadm/app/cmd/phases/reset/unmount_linux_test.go

    func TestFlagsToInt(t *testing.T) {
    
    	tests := []struct {
    		name           string
    		input          []string
    		expectedOutput int
    	}{
    		{
    			name:           "nil input",
    			input:          nil,
    			expectedOutput: 0,
    		},
    		{
    			name:           "no flags",
    			input:          []string{},
    			expectedOutput: 0,
    		},
    		{
    			name: "all flags",
    			input: []string{
    				kubeadmapi.UnmountFlagMNTForce,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 05 10:58:44 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  2. internal/amztime/iso8601_time_test.go

    	testCases := []struct {
    		date           time.Time
    		expectedOutput string
    	}{
    		{
    			date:           time.Date(2009, time.November, 13, 4, 51, 1, 940303531, time.UTC),
    			expectedOutput: "2009-11-13T04:51:01.940Z",
    		},
    		{
    			date:           time.Date(2009, time.November, 13, 4, 51, 1, 901303531, time.UTC),
    			expectedOutput: "2009-11-13T04:51:01.901Z",
    		},
    		{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Dec 12 18:28:30 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/ExecutionResult.java

         *
         * @param expectedOutput The expected log message, with line endings normalized to a newline character.
         */
        boolean hasErrorOutput(String expectedOutput);
    
        ExecutionResult assertOutputEquals(String expectedOutput, boolean ignoreExtraLines, boolean ignoreLineOrder);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/util/webhook/serviceresolver_test.go

    	scenarios := []struct {
    		serviceName      string
    		serviceNamespace string
    		port             int32
    		expectedOutput   string
    		expectError      bool
    	}{
    		// scenario 1: a service name along with a namespace resolves
    		{serviceName: "ross", serviceNamespace: "andromeda", port: 443, expectedOutput: "https://ross.andromeda.svc:443"},
    		// scenario 2: a service name without a namespace does not resolve
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 08 07:19:52 UTC 2019
    - 2K bytes
    - Viewed (0)
  5. platforms/native/language-native/src/integTest/groovy/org/gradle/language/swift/SwiftApplicationIntegrationTest.groovy

            releaseBinary.assertExists()
            releaseBinary.exec().out == app.withFeatureEnabled().expectedOutput
            installation("build/install/main/release").exec().out == app.withFeatureEnabled().expectedOutput
            releaseBinary.assertHasStrippedDebugSymbolsFor(['main.o', 'greeter.o'])
    
            succeeds "assembleDebug"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 12:43:37 UTC 2024
    - 40.2K bytes
    - Viewed (1)
  6. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/jsonpath_flags_test.go

    		outputFormat       string
    		templateArg        string
    		expectedError      string
    		expectedParseError string
    		expectedOutput     string
    		expectNoMatch      bool
    	}{
    		{
    			name:           "valid output format also containing the jsonpath argument succeeds",
    			outputFormat:   "jsonpath={ .metadata.name }",
    			expectedOutput: "foo",
    		},
    		{
    			name:          "valid output format and no --template argument results in an error",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 09:47:52 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/json_yaml_flags_test.go

    		name           string
    		outputFormat   string
    		expectedOutput string
    		expectNoMatch  bool
    	}{
    		{
    			name:           "json output format matches a json printer",
    			outputFormat:   "json",
    			expectedOutput: "\"name\": \"foo\"",
    		},
    		{
    			name:           "yaml output format matches a yaml printer",
    			outputFormat:   "yaml",
    			expectedOutput: "name: foo",
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 21 15:08:30 UTC 2018
    - 2.4K bytes
    - Viewed (0)
  8. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/OutputScrapingExecutionResult.java

        }
    
        @Override
        public boolean hasErrorOutput(String expectedOutput) {
            return getError().contains(expectedOutput);
        }
    
        @Override
        public ExecutionResult assertHasErrorOutput(String expectedOutput) {
            return assertContentContains(errorContent.withNormalizedEol(), expectedOutput, "Error output");
        }
    
        @Override
        public String getError() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 19K bytes
    - Viewed (0)
  9. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorParametersKotlinIntegrationTest.groovy

            runWork()
    
            then: 'it runs as expected'
            outputContains expectedOutput
    
            when: 'task runs for the 2nd time'
            runWork()
    
            then: 'it is skipped because UP-TO-DATE'
            result.assertTaskSkipped ':runWork'
            outputContains ':runWork UP-TO-DATE'
    
            and:
            outputDoesNotContain expectedOutput
    
            when: 'the outputs are deleted'
            file('build').deleteDir()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 11 20:22:02 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  10. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/name_flags_test.go

    		name           string
    		outputFormat   string
    		operation      string
    		dryRun         bool
    		expectedError  string
    		expectedOutput string
    		expectNoMatch  bool
    	}{
    		{
    			name:           "valid \"name\" output format with no operation prints resource name",
    			outputFormat:   "name",
    			expectedOutput: "pod/foo",
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 21 15:08:30 UTC 2018
    - 3.1K bytes
    - Viewed (0)
Back to top