(t *testing.T)
| 77 | } |
| 78 | |
| 79 | func TestCheckFileIsExist_ExistingFile(t *testing.T) { |
| 80 | tmpDir := t.TempDir() |
| 81 | path := filepath.Join(tmpDir, "exists.txt") |
| 82 | err := os.WriteFile(path, []byte("data"), 0644) |
| 83 | assert.NoError(t, err) |
| 84 | |
| 85 | assert.True(t, CheckFileIsExist(path)) |
| 86 | } |
| 87 | |
| 88 | func TestCheckFileIsExist_NonExistingFile(t *testing.T) { |
| 89 | assert.False(t, CheckFileIsExist("/nonexistent/file/that/does/not/exist.txt")) |
nothing calls this directly
no test coverage detected