-
Notifications
You must be signed in to change notification settings - Fork 431
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(parsers): add optionIsContainedInArgument
Currently all usages of the `optionsAreContainedInArgument` function are using only one option. Then, `optionIsContainedInArgument` comes as a simplification of the previous function. Even though `optionsAreContainedInArgument` is not used anymore, it is still being kept for now, since some parser might need to check for multiple options in the future. === RUN Benchmark_optionsAreContainedInArgumentWithOnlyOne Benchmark_optionsAreContainedInArgumentWithOnlyOne Benchmark_optionsAreContainedInArgumentWithOnlyOne-32 5000000 174.8 ns/op 0 B/op 0 allocs/op === RUN Benchmark_optionIsContainedInArgument Benchmark_optionIsContainedInArgument Benchmark_optionIsContainedInArgument-32 5000000 140.4 ns/op 0 B/op 0 allocs/op PASS
- Loading branch information
Showing
3 changed files
with
151 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.