- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for expectedState (0.22 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) -
pkg/kubelet/cm/memorymanager/state/state_checkpoint_test.go
func assertStateEqual(t *testing.T, restoredState, expectedState State) { expectedMachineState := expectedState.GetMachineState() restoredMachineState := restoredState.GetMachineState() assert.Equal(t, expectedMachineState, restoredMachineState, "expected MachineState does not equal to restored one") expectedMemoryAssignments := expectedState.GetMemoryAssignments()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jul 30 03:35:26 UTC 2022 - 10.6K 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) -
security/pkg/credentialfetcher/plugin/gce_test.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Aug 03 18:09:59 UTC 2021 - 10.1K bytes - Viewed (0)