![]() |
User Guide
|
#include <catch2/catch_test_macros.hpp>
#include "ast/program.hpp"
#include "parser/nmodl_driver.hpp"
#include "test/unit/utils/test_utils.hpp"
#include "visitors/checkparent_visitor.hpp"
#include "visitors/local_var_rename_visitor.hpp"
#include "visitors/nmodl_visitor.hpp"
#include "visitors/rename_visitor.hpp"
#include "visitors/symtab_visitor.hpp"
#include "visitors/verbatim_var_rename_visitor.hpp"
Go to the source code of this file.
Functions | |
static std::string | run_var_rename_visitor (const std::string &text, const std::vector< std::pair< std::string, std::string >> &variables) |
SCENARIO ("Renaming any variable in mod file with RenameVisitor", "[visitor][rename]") | |
std::string | run_local_var_rename_visitor (const std::string &text) |
SCENARIO ("Renaming with presence of local and global variables in same block", "[visitor][rename]") | |
SCENARIO ("Renaming in the absence of global blocks", "[visitor][rename]") | |
SCENARIO ("Variable renaming in nested blocks", "[visitor][rename]") | |
SCENARIO ("Renaming in presence of local variable in verbatim block", "[visitor][rename]") | |
std::string run_local_var_rename_visitor | ( | const std::string & | text | ) |
Definition at line 139 of file rename.cpp.
|
static |
Definition at line 32 of file rename.cpp.
SCENARIO | ( | "Renaming any variable in mod file with RenameVisitor" | , |
"" | [visitor][rename] | ||
) |
expected result after renaming m, gNaTs2_tbar and mAlpha
Definition at line 49 of file rename.cpp.
SCENARIO | ( | "Renaming in presence of local variable in verbatim block" | , |
"" | [visitor][rename] | ||
) |
Definition at line 322 of file rename.cpp.
SCENARIO | ( | "Renaming in the absence of global blocks" | , |
"" | [visitor][rename] | ||
) |
Definition at line 190 of file rename.cpp.
SCENARIO | ( | "Renaming with presence of local and global variables in same block" | , |
"" | [visitor][rename] | ||
) |
Definition at line 152 of file rename.cpp.
SCENARIO | ( | "Variable renaming in nested blocks" | , |
"" | [visitor][rename] | ||
) |
Definition at line 212 of file rename.cpp.