From 4157a2a365a6f6e4aed84eba2a073e7cda42d50f Mon Sep 17 00:00:00 2001 From: rsteube Date: Tue, 20 Jun 2023 10:34:12 +0200 Subject: [PATCH] limit test files to linux --- .gitignore | 1 + example/cmd/_test_files/-_minus_prefix.txt | 0 example/cmd/_test_files/ampersand_&.txt | 0 example/cmd/_test_files/angle-brackets_<>.txt | 0 "example/cmd/_test_files/backslash2_\\n.txt" | 0 "example/cmd/_test_files/backslash3_\\t.txt" | 0 "example/cmd/_test_files/backslash_\\.txt" | 0 example/cmd/_test_files/backtick_`.txt | 0 "example/cmd/_test_files/both_quotes_'\".txt" | 0 example/cmd/_test_files/colon_:.txt | 0 example/cmd/_test_files/curly-brackets_{}.txt | 0 example/cmd/_test_files/dollar_$.txt | 0 "example/cmd/_test_files/double-quote_\".txt" | 0 example/cmd/_test_files/files_linux.go | 24 +++++++++++++++++++ example/cmd/_test_files/go.mod | 4 +++- example/cmd/_test_files/hash_#.txt | 0 example/cmd/_test_files/pipe_|.txt | 0 example/cmd/_test_files/question_?.txt | 0 example/cmd/_test_files/round-brackets_().txt | 0 example/cmd/_test_files/semicolon_;.txt | 0 example/cmd/_test_files/single-quote_'.txt | 0 example/cmd/_test_files/space_ .txt | 0 .../cmd/_test_files/square-brackets_[].txt | 0 example/cmd/_test_files/star_*.txt | 0 example/cmd/_test_files/~_tilde_prefix.txt | 0 25 files changed, 28 insertions(+), 1 deletion(-) delete mode 100644 example/cmd/_test_files/-_minus_prefix.txt delete mode 100644 example/cmd/_test_files/ampersand_&.txt delete mode 100644 example/cmd/_test_files/angle-brackets_<>.txt delete mode 100644 "example/cmd/_test_files/backslash2_\\n.txt" delete mode 100644 "example/cmd/_test_files/backslash3_\\t.txt" delete mode 100644 "example/cmd/_test_files/backslash_\\.txt" delete mode 100644 example/cmd/_test_files/backtick_`.txt delete mode 100644 "example/cmd/_test_files/both_quotes_'\".txt" delete mode 100644 example/cmd/_test_files/colon_:.txt delete mode 100644 example/cmd/_test_files/curly-brackets_{}.txt delete mode 100644 example/cmd/_test_files/dollar_$.txt delete mode 100644 "example/cmd/_test_files/double-quote_\".txt" create mode 100644 example/cmd/_test_files/files_linux.go delete mode 100644 example/cmd/_test_files/hash_#.txt delete mode 100644 example/cmd/_test_files/pipe_|.txt delete mode 100644 example/cmd/_test_files/question_?.txt delete mode 100644 example/cmd/_test_files/round-brackets_().txt delete mode 100644 example/cmd/_test_files/semicolon_;.txt delete mode 100644 example/cmd/_test_files/single-quote_'.txt delete mode 100644 example/cmd/_test_files/space_ .txt delete mode 100644 example/cmd/_test_files/square-brackets_[].txt delete mode 100644 example/cmd/_test_files/star_*.txt delete mode 100644 example/cmd/_test_files/~_tilde_prefix.txt diff --git a/.gitignore b/.gitignore index 39959f6a9..8bd292ac6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .vscode example/example +example/cmd/_test_files/*.txt caraparse/caraparse docs/book diff --git a/example/cmd/_test_files/-_minus_prefix.txt b/example/cmd/_test_files/-_minus_prefix.txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/example/cmd/_test_files/ampersand_&.txt b/example/cmd/_test_files/ampersand_&.txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/example/cmd/_test_files/angle-brackets_<>.txt b/example/cmd/_test_files/angle-brackets_<>.txt deleted file mode 100644 index e69de29bb..000000000 diff --git "a/example/cmd/_test_files/backslash2_\\n.txt" "b/example/cmd/_test_files/backslash2_\\n.txt" deleted file mode 100644 index e69de29bb..000000000 diff --git "a/example/cmd/_test_files/backslash3_\\t.txt" "b/example/cmd/_test_files/backslash3_\\t.txt" deleted file mode 100644 index e69de29bb..000000000 diff --git "a/example/cmd/_test_files/backslash_\\.txt" "b/example/cmd/_test_files/backslash_\\.txt" deleted file mode 100644 index e69de29bb..000000000 diff --git a/example/cmd/_test_files/backtick_`.txt b/example/cmd/_test_files/backtick_`.txt deleted file mode 100644 index e69de29bb..000000000 diff --git "a/example/cmd/_test_files/both_quotes_'\".txt" "b/example/cmd/_test_files/both_quotes_'\".txt" deleted file mode 100644 index e69de29bb..000000000 diff --git a/example/cmd/_test_files/colon_:.txt b/example/cmd/_test_files/colon_:.txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/example/cmd/_test_files/curly-brackets_{}.txt b/example/cmd/_test_files/curly-brackets_{}.txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/example/cmd/_test_files/dollar_$.txt b/example/cmd/_test_files/dollar_$.txt deleted file mode 100644 index e69de29bb..000000000 diff --git "a/example/cmd/_test_files/double-quote_\".txt" "b/example/cmd/_test_files/double-quote_\".txt" deleted file mode 100644 index e69de29bb..000000000 diff --git a/example/cmd/_test_files/files_linux.go b/example/cmd/_test_files/files_linux.go new file mode 100644 index 000000000..0be667011 --- /dev/null +++ b/example/cmd/_test_files/files_linux.go @@ -0,0 +1,24 @@ +package testfiles + +//go:generate touch -- -_minus_prefix.txt +//go:generate touch -- ampersand_&.txt +//go:generate touch -- angle-brackets_<>.txt +//go:generate touch -- backslash2_\n.txt +//go:generate touch -- backslash3_\t.txt +//go:generate touch -- backslash_\.txt +//go:generate touch -- backtick_`.txt +//go:generate touch -- both_quotes_'".txt +//go:generate touch -- colon_:.txt +//go:generate touch -- curly-brackets_{}.txt +//go:generate touch -- dollar_$.txt +//go:generate touch -- double-quote_".txt +//go:generate touch -- hash_#.txt +//go:generate touch -- pipe_|.txt +//go:generate touch -- question_?.txt +//go:generate touch -- round-brackets_().txt +//go:generate touch -- semicolon_;.txt +//go:generate touch -- single-quote_'.txt +//go:generate touch -- "space_ .txt" +//go:generate touch -- square-brackets_[].txt +//go:generate touch -- "star_*.txt" +//go:generate touch -- ~_tilde_prefix.txt diff --git a/example/cmd/_test_files/go.mod b/example/cmd/_test_files/go.mod index c5d9e26f3..a1d686a86 100644 --- a/example/cmd/_test_files/go.mod +++ b/example/cmd/_test_files/go.mod @@ -1 +1,3 @@ -# fix go mod invalid char error: https://github.com/golang/go/issues/26672 +module github.com/rsteube/carapace/example/_test_files + +// fix go mod invalid char error: https://github.com/golang/go/issues/26672 diff --git a/example/cmd/_test_files/hash_#.txt b/example/cmd/_test_files/hash_#.txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/example/cmd/_test_files/pipe_|.txt b/example/cmd/_test_files/pipe_|.txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/example/cmd/_test_files/question_?.txt b/example/cmd/_test_files/question_?.txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/example/cmd/_test_files/round-brackets_().txt b/example/cmd/_test_files/round-brackets_().txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/example/cmd/_test_files/semicolon_;.txt b/example/cmd/_test_files/semicolon_;.txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/example/cmd/_test_files/single-quote_'.txt b/example/cmd/_test_files/single-quote_'.txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/example/cmd/_test_files/space_ .txt b/example/cmd/_test_files/space_ .txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/example/cmd/_test_files/square-brackets_[].txt b/example/cmd/_test_files/square-brackets_[].txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/example/cmd/_test_files/star_*.txt b/example/cmd/_test_files/star_*.txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/example/cmd/_test_files/~_tilde_prefix.txt b/example/cmd/_test_files/~_tilde_prefix.txt deleted file mode 100644 index e69de29bb..000000000