Skip to content

Commit d4ddee6

Browse files
authored
Merge pull request #200 from adrianreber/2026-02-13-pod-options
lib: Rename ReadContainerCheckpointPodOptions to ReadCheckpointPodOptions
2 parents 06e23e6 + 13a7b8e commit d4ddee6

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/metadata.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func ReadContainerCheckpointStatusFile(checkpointDirectory string) (*ContainerdS
117117
return &containerdStatus, statusFile, err
118118
}
119119

120-
func ReadContainerCheckpointPodOptions(checkpointDirectory string) (*CheckpointedPodOptions, string, error) {
120+
func ReadCheckpointPodOptions(checkpointDirectory string) (*CheckpointedPodOptions, string, error) {
121121
var podOptions CheckpointedPodOptions
122122
podOptionsFile, err := ReadJSONFile(&podOptions, checkpointDirectory, PodOptionsFile)
123123

lib/metadata_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"testing"
77
)
88

9-
func TestReadContainerCheckpointPodOptions(t *testing.T) {
9+
func TestReadCheckpointPodOptions(t *testing.T) {
1010
tests := []struct {
1111
name string
1212
podOptions CheckpointedPodOptions
@@ -66,7 +66,7 @@ func TestReadContainerCheckpointPodOptions(t *testing.T) {
6666
t.Fatalf("failed to write test file: %v", err)
6767
}
6868

69-
podOptions, _, err := ReadContainerCheckpointPodOptions(tmpDir)
69+
podOptions, _, err := ReadCheckpointPodOptions(tmpDir)
7070
if err != nil {
7171
t.Errorf("unexpected error: %v", err)
7272
return
@@ -94,10 +94,10 @@ func TestReadContainerCheckpointPodOptions(t *testing.T) {
9494
}
9595
}
9696

97-
func TestReadContainerCheckpointPodOptionsFileNotFound(t *testing.T) {
97+
func TestReadCheckpointPodOptionsFileNotFound(t *testing.T) {
9898
tmpDir := t.TempDir()
9999

100-
_, _, err := ReadContainerCheckpointPodOptions(tmpDir)
100+
_, _, err := ReadCheckpointPodOptions(tmpDir)
101101
if err == nil {
102102
t.Errorf("expected error for non-existent file, got nil")
103103
}

0 commit comments

Comments
 (0)