@@ -9,16 +9,16 @@ import (
99)
1010
1111type emailTestExec struct {
12- configRaw string
13- readErr error
14- writtenRaw string
15- writeErr error
16- commandOut string
17- commandErr error
18- commandArgs []string
12+ configRaw string
13+ readErr error
14+ writtenRaw string
15+ writeErr error
16+ commandOut string
17+ commandErr error
18+ commandArgs []string
1919}
2020
21- func (e * emailTestExec ) Mode () Mode { return ModeLocal }
21+ func (e * emailTestExec ) Mode () Mode { return ModeLocal }
2222func (e * emailTestExec ) ExecShell (_ time.Duration , _ string ) (string , error ) { return "" , nil }
2323func (e * emailTestExec ) ExecCommand (_ time.Duration , args ... string ) (string , error ) {
2424 e .commandArgs = append ([]string (nil ), args ... )
@@ -45,13 +45,13 @@ func (e *emailTestExec) WriteFile(path string, data []byte, _ os.FileMode) error
4545 }
4646 return nil
4747}
48- func (e * emailTestExec ) ConfigPath () string { return "/tmp/config.json" }
49- func (e * emailTestExec ) AuthPath () string { return "/tmp/auth.json" }
50- func (e * emailTestExec ) HomePath () string { return "/tmp" }
51- func (e * emailTestExec ) BinaryPath () string { return "sciclaw" }
52- func (e * emailTestExec ) AgentVersion () string { return "vtest" }
53- func (e * emailTestExec ) ServiceInstalled () bool { return true }
54- func (e * emailTestExec ) ServiceActive () bool { return true }
48+ func (e * emailTestExec ) ConfigPath () string { return "/tmp/config.json" }
49+ func (e * emailTestExec ) AuthPath () string { return "/tmp/auth.json" }
50+ func (e * emailTestExec ) HomePath () string { return "/tmp" }
51+ func (e * emailTestExec ) BinaryPath () string { return "sciclaw" }
52+ func (e * emailTestExec ) AgentVersion () string { return "vtest" }
53+ func (e * emailTestExec ) ServiceInstalled () bool { return true }
54+ func (e * emailTestExec ) ServiceActive () bool { return true }
5555func (e * emailTestExec ) InteractiveProcess (_ ... string ) * exec.Cmd { return exec .Command ("true" ) }
5656
5757func TestFetchEmailDataParsesConfig (t * testing.T ) {
0 commit comments