package deploy import ( "strings" "testing" ) func TestRunHollowedUnavailableWithoutTag(t *testing.T) { err := RunHollowed("C:\\Windows\\System32\\notepad.exe", []byte{0}) if err == nil { t.Fatal("expected error on default build") } msg := err.Error() if !strings.Contains(msg, "hollowing") && !strings.Contains(msg, "not available") { t.Fatalf("unexpected error: %q", msg) } }