fix checkpoint comparison test store refs · Entire
fix checkpoint comparison test store refs
c3f8e3b·
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
1811 unmodified lines
1812
1813
1814
1815
1815
1816
1817
1818
68 unmodified lines
1887
1888
1889
1890
1890
1891
1892
1893
77 unmodified lines
1971
1972
1973
1974
1974
1975
1976
1977
35 unmodified lines
2013
2014
2015
2016
2016
2017
2018
2019
33 unmodified lines
2053
2054
2055
2056
2056
2057
2058
2059
34 unmodified lines
2094
2095
2096
2097
2097
2098
2099
2100
41 unmodified lines
2142
2143
2144
2145
2145
2146
2147
2148
1811 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