fix checkpoint comparison test store refs · Entire
fix checkpoint comparison test store refs
67d764d·
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
1813 unmodified lines
1814
1815
1816
1817
1817
1818
1819
1820
68 unmodified lines
1889
1890
1891
1892
1892
1893
1894
1895
77 unmodified lines
1973
1974
1975
1976
1976
1977
1978
1979
35 unmodified lines
2015
2016
2017
2018
2018
2019
2020
2021
33 unmodified lines
2055
2056
2057
2058
2058
2059
2060
2061
34 unmodified lines
2096
2097
2098
2099
2099
2100
2101
2102
41 unmodified lines
2144
2145
2146
2147
2147
2148
2149
2150
1813 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