package service

import "testing"

func TestMountedHostTmpDirMapsConfiguredTmpPathIntoMount(t *testing.T) {
	if got := mountedHostTmpDir("/tmp/metis-flash-test"); got != "/host-tmp/metis-flash-test" {
		t.Fatalf("expected /host-tmp/metis-flash-test, got %q", got)
	}
	if got := mountedHostTmpDir("/tmp"); got != "/host-tmp" {
		t.Fatalf("expected /host-tmp, got %q", got)
	}
}
