Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 218 for isSuccess (0.05 seconds)

  1. internal/config/storageclass/storage-class_test.go

    	}
    	for i, tt := range tests {
    		err := validateParity(tt.ssParity, tt.rrsParity, tt.setDriveCount)
    		if err != nil && tt.success {
    			t.Errorf("Test %d, Expected success, got %s", i+1, err)
    		}
    		if err == nil && !tt.success {
    			t.Errorf("Test %d, Expected failure, got success", i+1)
    		}
    	}
    }
    
    func TestParityCount(t *testing.T) {
    	tests := []struct {
    		sc             string
    		drivesCount    int
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Aug 15 23:04:20 GMT 2023
    - 4.3K bytes
    - Click Count (0)
  2. src/archive/tar/strconv_test.go

    		var p parser
    		got := p.parseNumeric([]byte(v.in))
    		ok := (p.err == nil)
    		if ok != v.ok {
    			if v.ok {
    				t.Errorf("parseNumeric(%q): got parsing failure, want success", v.in)
    			} else {
    				t.Errorf("parseNumeric(%q): got parsing success, want failure", v.in)
    			}
    		}
    		if ok && got != v.want {
    			t.Errorf("parseNumeric(%q): got %d, want %d", v.in, got, v.want)
    		}
    	}
    }
    
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Thu Sep 11 17:52:43 GMT 2025
    - 15K bytes
    - Click Count (0)
  3. scripts/deploy_docs_status.py

                context="deploy-docs",
                target_url=run_url,
            )
            logging.info("Error deploying docs")
            return
        assert settings.state == "success"
        if not settings.deploy_url:
            current_commit.create_status(
                state="success",
                description="No Docs Changes",
                context="deploy-docs",
                target_url=run_url,
            )
            logging.info("No docs changes found")
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Sep 30 05:56:53 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  4. internal/mountinfo/mountinfo_linux_test.go

    		}
    	}
    	// Success case, where path doesn't have any mounts.
    	{
    		absPaths := []string{"/path/to/x"}
    		if err = checkCrossDevice(absPaths, mountsPath); err != nil {
    			t.Fatalf("Expected success, failed instead (%s)", err)
    		}
    	}
    }
    
    // Tests cross device mount verification function, for both failure
    // and success cases.
    func TestCrossDeviceMount(t *testing.T) {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 7.3K bytes
    - Click Count (0)
  5. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/StrategyOrchestratorTest.java

                }
    
                UpgradeResult result = orchestrator.executeStrategies(context, pomMap);
    
                assertTrue(result.success(), "Orchestrator should succeed when all strategies succeed");
    
                // Verify all strategies were called
                for (UpgradeStrategy strategy : mockStrategies) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 12.3K bytes
    - Click Count (0)
  6. internal/config/etcd/etcd_test.go

    		t.Run(testCase.s, func(t *testing.T) {
    			endpoints, secure, err := parseEndpoints(testCase.s)
    			if err != nil && testCase.success {
    				t.Errorf("expected to succeed but failed with %s", err)
    			}
    			if !testCase.success && err == nil {
    				t.Error("expected failure but succeeded instead")
    			}
    			if testCase.success {
    				if !reflect.DeepEqual(endpoints, testCase.endpoints) {
    					t.Errorf("expected %s, got %s", testCase.endpoints, endpoints)
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  7. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/UpgradeContextTest.java

            // Test that icon methods don't throw exceptions
            // (The actual icon choice depends on terminal charset capabilities)
            context.success("Test success message");
            context.failure("Test failure message");
            context.warning("Test warning message");
            context.detail("Test detail message");
            context.action("Test action message");
        }
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Jul 15 09:35:08 GMT 2025
    - 3.3K bytes
    - Click Count (0)
  8. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/ConsoleIconTest.java

        void shouldReturnUnicodeWhenTerminalSupportsUtf8() {
            Terminal mockTerminal = mock(Terminal.class);
            when(mockTerminal.encoding()).thenReturn(StandardCharsets.UTF_8);
    
            assertEquals("✓", ConsoleIcon.SUCCESS.getIcon(mockTerminal));
            assertEquals("✗", ConsoleIcon.ERROR.getIcon(mockTerminal));
            assertEquals("⚠", ConsoleIcon.WARNING.getIcon(mockTerminal));
            assertEquals("•", ConsoleIcon.DETAIL.getIcon(mockTerminal));
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Jul 15 09:35:08 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

              TimeoutsToUse.ANY,
              Outcome.SUCCESS);
          addTests(
              suite,
              method,
              Scenario.UNSATISFIED_AND_UNOCCUPIED_BEFORE_ENTERING,
              TimeoutsToUse.FINITE,
              isGuarded(method)
                  ? (isBoolean(method) ? Outcome.FAILURE : Outcome.HANG)
                  : Outcome.SUCCESS);
          addTests(
              suite,
              method,
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 21:00:51 GMT 2025
    - 27.1K bytes
    - Click Count (0)
  10. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategyTest.java

                UpgradeContext context = createMockContext();
                UpgradeResult result = strategy.doApply(context, pomMap);
    
                assertTrue(result.success(), "Plugin upgrade should succeed");
                // Note: POM may or may not be modified depending on whether upgrades are needed
    
                // Verify the plugin version was upgraded
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 27.8K bytes
    - Click Count (0)
Back to Top