initial commit [141.14.140.180,mike]
This commit is contained in:
commit
156bb18c91
50 files changed
+13466
No files matched your search
@@ -0,0 +1,18 @@
|
||||
package ghostty
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestIsCLIAction(t *testing.T) {
|
||||
cases := map[string]bool{
|
||||
"/usr/bin/ghostty\x00": false,
|
||||
"ghostty\x00--gtk-single-instance=true\x00": false,
|
||||
"ghostty\x00+list-themes\x00": true,
|
||||
"ghostty\x00--config-file=x\x00+show-config\x00": true,
|
||||
"ghostty\x00-e\x00vim\x00+10\x00file\x00": false,
|
||||
}
|
||||
for cmdline, want := range cases {
|
||||
if got := isCLIAction([]byte(cmdline)); got != want {
|
||||
t.Errorf("isCLIAction(%q) = %v, want %v", cmdline, got, want)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user