Skip to content

Commit 0d03407

Browse files
committed
refactor: template + new ast little unit tests
1 parent c470439 commit 0d03407

File tree

3 files changed

+96472
-16492
lines changed

3 files changed

+96472
-16492
lines changed

test_starlark_condition_template/test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,4 +422,5 @@ def find_raw_nodes(ast):
422422
assert is_matching_template_by_key(AST2, "CALL_FN_SOLANAPROGRAM_PROGRAM_INVOKE")
423423
assert is_matching_template(AST2, generate_call_fn_template("solana_program", "program", "invoke"))
424424

425-
425+
# if & call other test
426+
assert is_matching_template(AST7, generate_call_fn_template("solana_program", "program", "invoke")) and not is_matching_template_by_key(AST7, "CHECK_SPLTOKEN_ID_CTX_ACCOUNT_AUTHORITY_KEY")

0 commit comments

Comments
 (0)