KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_altium_rule_transformer.cpp File Reference

Test suite for ALTIUM_RULE_TOKENIZER. More...

Go to the source code of this file.

Classes

struct  ALTIUM_RULE_TRANSFORMER_FIXTURE
 
struct  ALTIUM_RULE_TOKENIZER_INPUT_OUTPUT
 

Functions

 BOOST_AUTO_TEST_CASE (AltiumRuleTokenizerEmptyInput)
 Declares the struct as the Boost test fixture.
 
 BOOST_AUTO_TEST_CASE (AltiumRuleTokenizerOnlySpaces)
 
 BOOST_AUTO_TEST_CASE (AltiumRuleTokenizerSingleCharIdentifier)
 
 BOOST_AUTO_TEST_CASE (AltiumRuleTokenizerParameterizedTest)
 Test conversation from wxString to Altium tokens.
 

Variables

static const std::vector< ALTIUM_RULE_TOKENIZER_INPUT_OUTPUTaltium_rule_tokens_property
 A list of valid test strings and the expected results.
 

Detailed Description

Test suite for ALTIUM_RULE_TOKENIZER.

Definition in file test_altium_rule_transformer.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/4]

BOOST_AUTO_TEST_CASE ( AltiumRuleTokenizerEmptyInput  )

Declares the struct as the Boost test fixture.

Definition at line 45 of file test_altium_rule_transformer.cpp.

References END_OF_EXPR, ALTIUM_RULE_TOKEN::kind, ALTIUM_RULE_TOKENIZER::Next(), next(), ALTIUM_RULE_TOKENIZER::Peek(), and ALTIUM_RULE_TOKEN::pos.

◆ BOOST_AUTO_TEST_CASE() [2/4]

BOOST_AUTO_TEST_CASE ( AltiumRuleTokenizerOnlySpaces  )

◆ BOOST_AUTO_TEST_CASE() [3/4]

BOOST_AUTO_TEST_CASE ( AltiumRuleTokenizerParameterizedTest  )

◆ BOOST_AUTO_TEST_CASE() [4/4]

BOOST_AUTO_TEST_CASE ( AltiumRuleTokenizerSingleCharIdentifier  )

Variable Documentation

◆ altium_rule_tokens_property

const std::vector<ALTIUM_RULE_TOKENIZER_INPUT_OUTPUT> altium_rule_tokens_property
static

A list of valid test strings and the expected results.

Definition at line 107 of file test_altium_rule_transformer.cpp.

Referenced by BOOST_AUTO_TEST_CASE().