返回 DeepSeek-Reasonix
schema_one_test.go
根目录 / desktop / schema_one_test.go
1 package main
2
3 import (
4 "testing"
5
6 "reasonix/internal/agent"
7 )
8
9 // isolateDesktopUserDirsSchemaOne pins a test to the schema-1 session writer:
10 // it exercises recovery-copy mechanics that only that path has.
11 func isolateDesktopUserDirsSchemaOne(t *testing.T) {
12 t.Helper()
13 t.Setenv(agent.SessionLogSchemaEnv, "v1")
14 isolateDesktopUserDirs(t)
15 }
16
17 // schemaOneTempDir pins a test to the schema-1 session writer and returns a
18 // temp dir for its session files.
19 func schemaOneTempDir(t *testing.T) string {
20 t.Helper()
21 t.Setenv(agent.SessionLogSchemaEnv, "v1")
22 return t.TempDir()
23 }
24
24 lines GO