(t *testing.T)
| 23 | } |
| 24 | |
| 25 | func TestNewSession_AllOptionsApplied(t *testing.T) { |
| 26 | t.Parallel() |
| 27 | s := New( |
| 28 | WithMaxIterations(10), |
| 29 | WithToolsApproved(true), |
| 30 | WithHideToolResults(true), |
| 31 | WithWorkingDir("/work"), |
| 32 | ) |
| 33 | |
| 34 | assert.Equal(t, 10, s.MaxIterations) |
| 35 | assert.True(t, s.ToolsApproved) |
| 36 | assert.True(t, s.HideToolResults) |
| 37 | assert.Equal(t, "/work", s.WorkingDir) |
| 38 | assert.Equal(t, []string{"/work"}, s.AllowedDirectories()) |
| 39 | } |
| 40 | |
| 41 | // TestNewSession_ConsistencyBetweenInitialAndSpawned verifies that the |
| 42 | // initial session and spawned sessions receive the same set of options. |
nothing calls this directly
no test coverage detected