Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for assertStateEqual (0.26 sec)

  1. pkg/kubelet/cm/memorymanager/state/state_checkpoint_test.go

    	testutil "k8s.io/kubernetes/pkg/kubelet/cm/cpumanager/state/testing"
    )
    
    const testingCheckpoint = "memorymanager_checkpoint_test"
    
    // assertStateEqual marks provided test as failed if provided states differ
    func assertStateEqual(t *testing.T, restoredState, expectedState State) {
    	expectedMachineState := expectedState.GetMachineState()
    	restoredMachineState := restoredState.GetMachineState()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 30 03:35:26 UTC 2022
    - 10.6K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/cpumanager/state/state_checkpoint_test.go

    				require.Contains(t, err.Error(), tc.expectedError)
    				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
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 03 16:26:09 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/dra/state/state_checkpoint_test.go

    	testutil "k8s.io/kubernetes/pkg/kubelet/cm/cpumanager/state/testing"
    )
    
    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)
Back to top