fix checkpoint comparison test store refs · Entire
fix checkpoint comparison test store refs
79f19d0→main·
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
cmd/entire/cli
Msessions_test.go+7/-7
1900 unmodified lines
1901
1902
1903
1904
1904
1905
1906
1907
68 unmodified lines
1976
1977
1978
1979
1979
1980
1981
1982
77 unmodified lines
2060
2061
2062
2063
2063
2064
2065
2066
35 unmodified lines
2102
2103
2104
2105
2105
2106
2107
2108
33 unmodified lines
2142
2143
2144
2145
2145
2146
2147
2148
34 unmodified lines
2183
2184
2185
2186
2186
2187
2188
2189
41 unmodified lines
2231
2232
2233
2234
2234
2235
2236
2237
1900 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