TestSetDir verifies that Dir() does not overwrite the value set through SetDir() if it has not been run before.
(t *testing.T)
| 477 | // TestSetDir verifies that Dir() does not overwrite the value set through |
| 478 | // SetDir() if it has not been run before. |
| 479 | func TestSetDir(t *testing.T) { |
| 480 | const expected = "my_config_dir" |
| 481 | resetConfigDir() |
| 482 | SetDir(expected) |
| 483 | assert.Check(t, is.Equal(Dir(), expected)) |
| 484 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…