You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fzf/src
Vlastimil Ovčáčík 61339a8ae2
Add more tests of placeholder flags and simplify its logic (#2624)
* [tests] Test fzf's placeholders and escaping on practical commands

This tests some reasonable commands in fzf's templates (for commands,
previews, rebinds etc.), how are those commands escaped (backslashes,
double quotes), and documents if the output is executable in cmd.exe.
Both on Unix and Windows.

* [tests] Add testing of placeholder parsing and matching

Adds tests and bit of docs for the curly brackets placeholders in fzf's
template strings. Also tests the "placeholder" regex.

* [tests] Add more test cases of replacing placeholders focused on flags

Replacing placeholders in templates is already tested, this adds tests
that focus more on the parameters of placeholders - e.g. flags, token
ranges.

There is at least one test for each flag, not all combinations are
tested though.

* [refactoring] Split OS-specific function quoteEntry() to corresponding source file

This is minor refactoring, and also the function's test was made
crossplatform.

* [refactoring] Simplify replacePlaceholder function

Should be equivalent to the original, but has simpler structure.
3 years ago
..
algo Fix spelling error (Extention -> Extension) (#2589) 3 years ago
protector Add pledge(2) support (OpenBSD only) via a 'protector' package. (#1297) 4 years ago
tui Minor refactoring tcell library from tui.go to tcell.go 3 years ago
util [tests] Add testing of keyboard events in FullscreenRenderer.GetChar() 3 years ago
LICENSE 0.25.0 3 years ago
ansi.go Ignore more ANSI escape sequences 3 years ago
ansi_test.go fix: replace broken links with archived ones 3 years ago
cache.go Consolidate Result and rank structs 7 years ago
cache_test.go Check gofmt in `make test` 3 years ago
chunklist.go Experimental implementation of "reload" action 5 years ago
chunklist_test.go Remove count field from ChunkList 7 years ago
constants.go Kill input command on terminate 3 years ago
core.go Reset {n} after reload 3 years ago
history.go Code cleanup (#1640) 5 years ago
history_test.go Migrate to GitHub Actions 3 years ago
item.go Remove special nilItem 7 years ago
item_test.go Micro-optimizations 8 years ago
matcher.go Experimental implementation of "reload" action 5 years ago
merger.go Remove redundant assignment (#2356) 3 years ago
merger_test.go Further reduce unnecessary rune array conversion 7 years ago
options.go Do not check for --height support on --version 3 years ago
options_test.go Change --preview-window delimiter from : to , for consistency 3 years ago
pattern.go Check gofmt in `make test` 3 years ago
pattern_test.go Check gofmt in `make test` 3 years ago
reader.go [windows] Do not include directories in the list 4 years ago
reader_test.go Change the tests to run on Windows (#2615) 3 years ago
result.go Fix typos in source code (#2322) 3 years ago
result_others.go Optimize rank comparison on x86 (little-endian) 7 years ago
result_test.go Check gofmt in `make test` 3 years ago
result_x86.go Optimize rank comparison on x86 (little-endian) 7 years ago
terminal.go Add more tests of placeholder flags and simplify its logic (#2624) 3 years ago
terminal_test.go Add more tests of placeholder flags and simplify its logic (#2624) 3 years ago
terminal_unix.go Add more tests of placeholder flags and simplify its logic (#2624) 3 years ago
terminal_windows.go Add more tests of placeholder flags and simplify its logic (#2624) 3 years ago
tokenizer.go Fix typos in source code (#2322) 3 years ago
tokenizer_test.go Code cleanup: remove unnecessary string conversions (#1642) 5 years ago