var testStore … type FakeCheckpoint … type Data … type CheckpointDataV2 … type protocol … type PortMapping … type CheckpointData … func newFakeCheckpointV1(name string, portMappings []*PortMapping, hostNetwork bool) FakeCheckpoint { … } func (cp *CheckpointData) MarshalCheckpoint() ([]byte, error) { … } func (cp *CheckpointData) UnmarshalCheckpoint(blob []byte) error { … } func (cp *CheckpointData) VerifyChecksum() error { … } func (cp *CheckpointData) GetData() ([]*PortMapping, bool) { … } type checkpointDataV2 … func newFakeCheckpointV2(name string, portMappings []*PortMapping, hostNetwork bool) FakeCheckpoint { … } func newFakeCheckpointRemoteV1(name string, portMappings []*v1.PortMapping, hostNetwork bool) Checkpoint { … } func (cp *checkpointDataV2) MarshalCheckpoint() ([]byte, error) { … } func (cp *checkpointDataV2) UnmarshalCheckpoint(blob []byte) error { … } func (cp *checkpointDataV2) VerifyChecksum() error { … } func (cp *checkpointDataV2) GetData() ([]*PortMapping, bool) { … } func newTestCheckpointManager() CheckpointManager { … } func TestCheckpointManager(t *testing.T) { … }