Tests: Add unit tests #4848

This commit is contained in:
graciousgrey
2025-03-10 19:03:59 +01:00
parent 8f6880b034
commit 006ed32838
3 changed files with 55 additions and 0 deletions

View File

@@ -47,6 +47,7 @@ func TestPathExists(t *testing.T) {
func TestDeviceExists(t *testing.T) {
assert.True(t, DeviceExists("/dev/null"))
DeviceExists("/dev/nvidia0")
assert.False(t, DeviceExists(""))
}
func TestPathWritable(t *testing.T) {