fix checkpoint comparison test store refs · Entire

fix checkpoint comparison test store refs

fe5adc4·

peyton-alt·3w ago·1 file·+7 added/-7 removed

Sessions

abbcd842b704View transcript

[?
CLI Token Usage Visibility AnalysisCodex·GPT-5.5·21 steps](/content/gh/entireio/cli/session/019e988d-650c-75b3-a222-a00b07184ae0#timeline-abbcd842b704/index.html)

Changes

1

1803 unmodified lines

1804
1805
1806
1807
1807
1808
1809
1810
68 unmodified lines

1879
1880
1881
1882
1882
1883
1884
1885
77 unmodified lines

1963
1964
1965
1966
1966
1967
1968
1969
35 unmodified lines

2005
2006
2007
2008
2008
2009
2010
2011
33 unmodified lines

2045
2046
2047
2048
2048
2049
2050
2051
34 unmodified lines

2086
2087
2088
2089
2089
2090
2091
2092
41 unmodified lines

2134
2135
2136
2137
2137
2138
2139
2140

1803 unmodified lines

func TestCheckpointTokensCmd_TextOutputWithComparison(t *testing.T) {
    repo, _ := runExplainAutoTestRepo(t)
    ctx := context.Background()
    store := checkpoint.NewGitStore(repo)
    store := checkpoint.NewGitStore(repo, checkpoint.DefaultV1Refs())
    baselineID := id.MustCheckpointID("aaa111bbb222")
    currentID := id.MustCheckpointID("bbb222ccc333")

68 unmodified lines

func TestCheckpointTokensCmd_JSONOutputWithComparison(t *testing.T) {
    repo, _ := runExplainAutoTestRepo(t)
    ctx := context.Background()
    store := checkpoint.NewGitStore(repo)
    store := checkpoint.NewGitStore(repo, checkpoint.DefaultV1Refs())
    baselineID := id.MustCheckpointID("abc111abc111")
    currentID := id.MustCheckpointID("abc222abc222")

77 unmodified lines

func TestCheckpointTokensCmd_ComparisonNoChange(t *testing.T) {
    repo, _ := runExplainAutoTestRepo(t)
    ctx := context.Background()
    store := checkpoint.NewGitStore(repo)
    store := checkpoint.NewGitStore(repo, checkpoint.DefaultV1Refs())
    baselineID := id.MustCheckpointID("111aaa222bbb")
    currentID := id.MustCheckpointID("222bbb333ccc")

35 unmodified lines

func TestCheckpointTokensCmd_ComparisonUnavailableWhenBaselineTokenDataMissing(t *testing.T) {
    repo, _ := runExplainAutoTestRepo(t)
    ctx := context.Background()
    store := checkpoint.NewGitStore(repo)
    store := checkpoint.NewGitStore(repo, checkpoint.DefaultV1Refs())
    baselineID := id.MustCheckpointID("333ccc444ddd")
    currentID := id.MustCheckpointID("444ddd555eee")

33 unmodified lines

func TestCheckpointTokensCmd_JSONComparisonUnavailableWhenCurrentTokenDataMissing(t *testing.T) {
    repo, _ := runExplainAutoTestRepo(t)
    ctx := context.Background()
    store := checkpoint.NewGitStore(repo)
    store := checkpoint.NewGitStore(repo, checkpoint.DefaultV1Refs())
    baselineID := id.MustCheckpointID("555eee666fff")
    currentID := id.MustCheckpointID("666fff777aaa")

34 unmodified lines

func TestCheckpointTokensCmd_ComparisonUsesMultiSessionAggregates(t *testing.T) {
    repo, _ := runExplainAutoTestRepo(t)
    ctx := context.Background()
    store := checkpoint.NewGitStore(repo)
    store := checkpoint.NewGitStore(repo, checkpoint.DefaultV1Refs())
    baselineID := id.MustCheckpointID("777aaa888bbb")
    currentID := id.MustCheckpointID("888bbb999ccc")

41 unmodified lines

func TestCheckpointTokensCmd_ComparisonOmitsPercentWhenBaselineMetricIsZero(t *testing.T) {
    repo, _ := runExplainAutoTestRepo(t)
    ctx := context.Background()
    store := checkpoint.NewGitStore(repo)
    store := checkpoint.NewGitStore(repo, checkpoint.DefaultV1Refs())
    baselineID := id.MustCheckpointID("999ccc000aaa")
    currentID := id.MustCheckpointID("000aaa111bbb")

Mcmd/entire/cli/sessions_test.go+7/-7