- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for expectedState (0.18 sec)
-
platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/testing/DaemonsStateCheckpoint.groovy
*/ class DaemonsStateCheckpoint { final DaemonsState expectedState private final Runnable[] actions DaemonsStateCheckpoint(DaemonsState expectedState, Runnable... actions) { this.expectedState = expectedState this.actions = actions } String toString() { "DaemonsStateCheckpoint{expectedState=$expectedState,actions=$actions}" } boolean test(DaemonsState actualState) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:29:13 UTC 2023 - 1.3K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/api/internal/cache/CacheMarkingStrategyIntegrationTest.groovy
} def "directory '#directory' is #expectedState when markingStrategy = #markingStrategy and directory created = #createDir"() { writeInitScript(markingStrategy) def dir = new File(executer.gradleUserHomeDir, directory) if (createDir) { dir.mkdirs() } when: succeeds("help") then: if (expectedState == "marked") {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 15:10:38 UTC 2024 - 4.3K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/state/state_checkpoint_test.go
return } // compare state after restoration with the one expected AssertStateEqual(t, restoredState, tc.expectedState) }) } } func TestCheckpointStateStore(t *testing.T) { testCases := []struct { description string expectedState *stateMemory }{ { "Store default cpu set", &stateMemory{defaultCPUSet: cpuset.New(1, 2, 3)}, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 03 16:26:09 UTC 2023 - 10.9K bytes - Viewed (0) -
pkg/kubelet/cm/dra/state/state_checkpoint_test.go
) const testingCheckpoint = "dramanager_checkpoint_test" // assertStateEqual marks provided test as failed if provided states differ func assertStateEqual(t *testing.T, restoredState, expectedState ClaimInfoStateList) { assert.Equal(t, expectedState, restoredState, "expected ClaimInfoState does not equal to restored one") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 21:22:13 UTC 2024 - 11.9K bytes - Viewed (0) -
subprojects/composite-builds/src/main/java/org/gradle/composite/internal/DefaultBuildController.java
state = State.RunningTasks; } @Override public void stop() { workGraph.stop(); } private void assertInState(State expectedState) { if (state != expectedState) { throw new IllegalStateException("Build is in unexpected state: " + state); } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jun 22 20:29:05 UTC 2023 - 7.7K bytes - Viewed (0) -
pkg/kubelet/kubelet_test.go
podStatus.ContainerStatuses = test.statuses apiStatus := kubelet.generateAPIPodStatus(pod, podStatus, false) expectedState := test.expectedState if test.expectedInitState != nil { expectedState = test.expectedInitState } verifyContainerStatuses(t, apiStatus.InitContainerStatuses, expectedState, test.expectedLastTerminationState, fmt.Sprintf("case %d", i)) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 14 16:09:17 UTC 2024 - 106.9K bytes - Viewed (0) -
subprojects/composite-builds/src/main/java/org/gradle/composite/internal/DefaultIncludedBuildTaskGraph.java
controllers.close(); } private void assertCanQueueTask() { expectInState(State.Preparing); } private void expectInState(State expectedState) { if (state != expectedState) { throw unexpectedState(); } } private IllegalStateException unexpectedState() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 08 10:04:24 UTC 2024 - 11.3K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/testing/DaemonsEventSequence.groovy
def timeoutMessage = "timeoutBetweenStateChangeMs of $timeoutBetweenStateChangeMs" def checkpointMessage = "hit at checkpoint num $currentActionNum (expecting: $nextCheckpoint.expectedState)" def changesMessage = "processed state changes: $pastStateChanges, queued state changes: $changeQueue" timeoutError = new AssertionError("$timeoutMessage $checkpointMessage $changesMessage")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:29:13 UTC 2023 - 5.5K bytes - Viewed (0) -
pkg/kubelet/winstats/network_stats_test.go
// Make sure that we only have data from a single net adapter. expectedStats := cadvisorapi.InterfaceStats{ Name: fakeAdapterName, RxPackets: 1, TxPackets: 1, RxBytes: 1, TxBytes: 1, RxDropped: 1, RxErrors: 1, TxDropped: 1, TxErrors: 1, } assert.Equal(t, []cadvisorapi.InterfaceStats{expectedStats}, data)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 13 12:08:15 UTC 2023 - 5.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/StatsTesting.java
} } else if (expectedStats.count() == 1) { assertThat(actualStats.mean()).isWithin(ALLOWED_ERROR).of(expectedStats.mean()); assertThat(actualStats.populationVariance()).isWithin(0.0).of(0.0); assertThat(actualStats.min()).isWithin(ALLOWED_ERROR).of(expectedStats.min()); assertThat(actualStats.max()).isWithin(ALLOWED_ERROR).of(expectedStats.max()); } else {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Nov 09 22:49:56 UTC 2023 - 22.4K bytes - Viewed (0)