Skip to content

Commit

Permalink
Using treated/treated_complement as arguments in test
Browse files Browse the repository at this point in the history
  • Loading branch information
dvmarcilio committed Dec 14, 2022
1 parent f8cbc88 commit ab1c9fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@

language = ["go"]
substitutions = [
["true_flag_name", "true"],
["false_flag_name", "false"]
["treated", "true"],
["treated_complement", "false"]
]
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ query = """
)
)
(#eq? @func_id "BoolValue")
(#eq? @arg_str_literal "\\"@true_flag_name\\"")
(#eq? @arg_str_literal "\\"@treated\\"")
) @call_exp
"""
replace = "true"
replace_node = "call_exp"
holes = ["true_flag_name"]
holes = ["treated"]

[[rules]]
name = "false_flag"
Expand All @@ -46,9 +46,9 @@ query = """
)
)
(#eq? @func_id "BoolValue")
(#eq? @arg_str_literal "\\\"@false_flag_name\\\"")
(#eq? @arg_str_literal "\\\"@treated_complement\\\"")
) @call_exp
"""
replace = "false"
replace_node = "call_exp"
holes = ["false_flag_name"]
holes = ["treated_complement"]

0 comments on commit ab1c9fb

Please sign in to comment.