UniSet 2.45.1
Пространство имен tests.test_parser

Классы

class  TestMinimalST
class  TestInvalidST
class  TestSTConstructs
class  TestDefaults
class  TestASTDebugOutput
class  TestParseFileST
class  TestParseFileXML

Функции

str load_fixture (str name)
 _print_stmt_tree (node, indent=0)

Переменные

str FIXTURES_DIR = pathlib.Path(__file__).parent / "fixtures"
str REAL_PROJECTS_DIR = FIXTURES_DIR / "real_projects"
str TCPOU_FILE = FIXTURES_DIR / "real_projects" / "FB_Log.TcPOU"

Подробное описание

Tests for the st2js parser module.

Validates blark integration, ParseResult structure, error handling,
and parsing of 5+ representative ST constructs.

Функции

◆ _print_stmt_tree()

tests.test_parser._print_stmt_tree ( node,
indent = 0 )
protected
Recursively print AST node structure for debugging.

◆ load_fixture()

str tests.test_parser.load_fixture ( str name)
Load a .st fixture file and return its contents.