(t *testing.T)
| 15 | } |
| 16 | |
| 17 | func TestCreateTestConfigFile(t *testing.T) { |
| 18 | dir := t.TempDir() |
| 19 | content := "main:\n ports:\n - \"22\"" |
| 20 | path := CreateTestConfigFile(t, dir, content) |
| 21 | assert.Equal(t, filepath.Join(dir, "tryssh.db"), path) |
| 22 | |
| 23 | result := ReadFile(t, path) |
| 24 | assert.Equal(t, content, result) |
| 25 | } |
| 26 | |
| 27 | func TestCreateTestConfigFile_EmptyContent(t *testing.T) { |
| 28 | dir := t.TempDir() |
nothing calls this directly
no test coverage detected