-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: refactor paser tests to make more organized
- Loading branch information
Showing
73 changed files
with
284 additions
and
183 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
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
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
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
61 changes: 61 additions & 0 deletions
61
tests/parser/.functions/fixtures/func-provider-hook/funcs.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
|
||
<-: | ||
cwd_->: "{{cwd}}" | ||
home_dir_->: "{{home_dir}}" | ||
system_->: "{{system}}" | ||
platform_->: "{{platform}}" | ||
version_->: "{{version}}" | ||
processor_->: "{{processor}}" | ||
architecture_->: "{{architecture}}" | ||
lsb_release_->: "{{lsb_release}}" | ||
tackle_dir_->: "{{tackle_dir}}" | ||
provider_dir_->: "{{provider_dir}}" | ||
calling_directory_->: "{{calling_directory}}" | ||
calling_file_->: "{{calling_file}}" | ||
current_file_->: "{{current_file}}" | ||
current_directory_->: "{{current_directory}}" | ||
this_->: "{{this}}" | ||
public_context_->: "{{public_context}}" | ||
private_context_->: "{{private_context}}" | ||
existing_context_->: "{{existing_context}}" | ||
temporary_context_->: "{{temporary_context}}" | ||
key_path_->: "{{key_path}}" | ||
key_path_block_->: "{{key_path_block}}" | ||
xdg_cache_home_->: "{{xdg_cache_home}}" | ||
xdg_config_dirs_->: "{{xdg_config_dirs}}" | ||
xdg_config_home_->: "{{xdg_config_home}}" | ||
xdg_data_dirs_->: "{{xdg_data_dirs}}" | ||
xdg_data_home_->: "{{xdg_data_home}}" | ||
xdg_runtime_dir_->: "{{xdg_runtime_dir}}" | ||
xdg_state_home_->: "{{xdg_state_home}}" | ||
|
||
|
||
here<-: | ||
cwd_->: "{{cwd}}" | ||
home_dir_->: "{{home_dir}}" | ||
system_->: "{{system}}" | ||
platform_->: "{{platform}}" | ||
version_->: "{{version}}" | ||
processor_->: "{{processor}}" | ||
architecture_->: "{{architecture}}" | ||
lsb_release_->: "{{lsb_release}}" | ||
tackle_dir_->: "{{tackle_dir}}" | ||
provider_dir_->: "{{provider_dir}}" | ||
calling_directory_->: "{{calling_directory}}" | ||
calling_file_->: "{{calling_file}}" | ||
current_file_->: "{{current_file}}" | ||
current_directory_->: "{{current_directory}}" | ||
this_->: "{{this}}" | ||
public_context_->: "{{public_context}}" | ||
private_context_->: "{{private_context}}" | ||
existing_context_->: "{{existing_context}}" | ||
temporary_context_->: "{{temporary_context}}" | ||
key_path_->: "{{key_path}}" | ||
key_path_block_->: "{{key_path_block}}" | ||
xdg_cache_home_->: "{{xdg_cache_home}}" | ||
xdg_config_dirs_->: "{{xdg_config_dirs}}" | ||
xdg_config_home_->: "{{xdg_config_home}}" | ||
xdg_data_dirs_->: "{{xdg_data_dirs}}" | ||
xdg_data_home_->: "{{xdg_data_home}}" | ||
xdg_runtime_dir_->: "{{xdg_runtime_dir}}" | ||
xdg_state_home_->: "{{xdg_state_home}}" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
allow<-: | ||
foo: bar | ||
|
||
__config__: | ||
|
||
__args__: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
base<-: | ||
bar: baz | ||
|
||
foo<-: | ||
help: Foo | ||
baz: bing | ||
a_field->: base --merge |
Empty file.
33 changes: 33 additions & 0 deletions
33
tests/parser/.functions/provider-fixtures/func-provider/hooks/funks.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
a_funky<-: | ||
full: | ||
type: str | ||
description: A description | ||
default: a-default | ||
compact: a-default | ||
|
||
exec: | ||
foo: bar | ||
do->: var "{{full}}" | ||
|
||
args: | ||
- full | ||
|
||
return: do | ||
|
||
#b_funky<-: | ||
# full: | ||
# type: str | ||
# description: A description | ||
# default: a-default | ||
# compact: a-default | ||
# | ||
# exec: | ||
# foo: bar | ||
# do->: var "{{full}}" | ||
# | ||
# args: | ||
# - full | ||
# | ||
# return: do | ||
|
10 changes: 10 additions & 0 deletions
10
tests/parser/.functions/provider-fixtures/func-provider/tackle.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
stuff: things | ||
|
||
jinja_extension_default->: var {{a_funky()}} | ||
jinja_extension->: var {{a_funky(stuff)}} | ||
compact->: a_funky | ||
compact_arg->: a_funky stuff | ||
#jinja_filter->: var {{stuff|a_funky}} | ||
|
||
calling_dir->: {{calling_directory}} |
Empty file.
33 changes: 33 additions & 0 deletions
33
tests/parser/.functions/provider-fixtures/only-hooks-dir/hooks/funks.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
a_funky<-: | ||
full: | ||
type: str | ||
description: A description | ||
default: a-default | ||
compact: a-default | ||
|
||
exec: | ||
foo: bar | ||
do->: var "{{full}}" | ||
|
||
args: | ||
- full | ||
|
||
return: do | ||
|
||
#b_funky<-: | ||
# full: | ||
# type: str | ||
# description: A description | ||
# default: a-default | ||
# compact: a-default | ||
# | ||
# exec: | ||
# foo: bar | ||
# do->: var "{{full}}" | ||
# | ||
# args: | ||
# - full | ||
# | ||
# return: do | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
upper->: random_string --case upper | ||
# this should now be lower | ||
lower_default->: random_string | ||
# this should now be lower but forced... | ||
lower->: random_string --case lower |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
local->: tackle args.yaml --no_input | ||
local->: tackle args.yaml --no_input |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
stuff: things | ||
|
||
more_things->: var "lots of {{stuff}}" -if "stuff == 'things'" | ||
|
||
foo: | ||
- bar | ||
- baz | ||
|
||
foo_items->: var item -for foo | ||
foo_index->: var index -for foo | ||
|
||
calling_file->: "{{calling_file}}" | ||
|
||
#inner: | ||
# type: print this |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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.