const testingCheckpoint … // assertStateEqual marks provided test as failed if provided states differ func assertStateEqual(t *testing.T, restoredState, expectedState State) { … } func TestCheckpointStateRestore(t *testing.T) { … } func TestCheckpointStateStore(t *testing.T) { … } func TestCheckpointStateHelpers(t *testing.T) { … } func TestCheckpointStateClear(t *testing.T) { … }