mavtables  0.2.1
MAVLink router and firewall.
Functions
test_ConfigParser.cpp File Reference
#include <memory>
#include <catch.hpp>
#include <fakeit.hpp>
#include <pegtl.hpp>
#include "config_grammar.hpp"
#include "ConfigParser.hpp"
#include "MAVAddress.hpp"
#include "PacketVersion2.hpp"
#include "parse_tree.hpp"
#include "utility.hpp"
#include "common.hpp"
#include "common_Packet.hpp"
Include dependency graph for test_ConfigParser.cpp:

Go to the source code of this file.

Functions

 TEST_CASE ("'init_chains' initializes a map of chain names to empty chains" "[ConfigParser]")
 
 TEST_CASE ("'parse_action' parses an action from the given AST node.", "[ConfigParser]")
 
 TEST_CASE ("'parse_condition' parses a condition from the given AST node.", "[ConfigParser]")
 
 TEST_CASE ("'parse_chain' parses an action from the given AST node.", "[ConfigParser]")
 
 TEST_CASE ("'parse_filter' parses the filter from the given AST root node.", "[ConfigParser]")
 
 TEST_CASE ("'parse_serial' parses a serial interface from a serial interface " "AST node.", "[ConfigParser]")
 
 TEST_CASE ("'parse_udp' parses a UDP interface from a UDP interface AST node.", "[ConfigParser]")
 
 TEST_CASE ("'parse_interfaces' parses serial port and UDP interfaces from " "the root node.", "[ConfigParser]")
 
 TEST_CASE ("ConfigParser can parse a file.", "[ConfigParser]")
 
 TEST_CASE ("ConfigParser are printable.", "[ConfigParser]")
 
 TEST_CASE ("ConfigParser's 'make_app' method returns an application object.", "[ConfigParser]")
 

Function Documentation

◆ TEST_CASE() [1/11]

TEST_CASE ( "'init_chains' initializes a map of chain names to empty chains" ""  [ConfigParser])

Definition at line 35 of file test_ConfigParser.cpp.

◆ TEST_CASE() [2/11]

TEST_CASE ( "'parse_action' parses an action from the given AST node."  ,
""  [ConfigParser] 
)

Definition at line 101 of file test_ConfigParser.cpp.

◆ TEST_CASE() [3/11]

TEST_CASE ( "'parse_condition' parses a condition from the given AST node."  ,
""  [ConfigParser] 
)

Definition at line 432 of file test_ConfigParser.cpp.

◆ TEST_CASE() [4/11]

TEST_CASE ( "'parse_chain' parses an action from the given AST node."  ,
""  [ConfigParser] 
)

Definition at line 564 of file test_ConfigParser.cpp.

◆ TEST_CASE() [5/11]

TEST_CASE ( "'parse_filter' parses the filter from the given AST root node."  ,
""  [ConfigParser] 
)

Definition at line 661 of file test_ConfigParser.cpp.

References logger::heartbeat(), and ping.

Here is the call graph for this function:

◆ TEST_CASE() [6/11]

TEST_CASE ( "'parse_serial' parses a serial interface from a serial interface " "AST node."  ,
""  [ConfigParser] 
)

Definition at line 741 of file test_ConfigParser.cpp.

◆ TEST_CASE() [7/11]

TEST_CASE ( "'parse_udp' parses a UDP interface from a UDP interface AST node."  ,
""  [ConfigParser] 
)

Definition at line 903 of file test_ConfigParser.cpp.

◆ TEST_CASE() [8/11]

TEST_CASE ( "'parse_interfaces' parses serial port and UDP interfaces from " "the root node."  ,
""  [ConfigParser] 
)

Definition at line 997 of file test_ConfigParser.cpp.

References config::parse().

Here is the call graph for this function:

◆ TEST_CASE() [9/11]

TEST_CASE ( "ConfigParser can parse a file."  ,
""  [ConfigParser] 
)

Definition at line 1084 of file test_ConfigParser.cpp.

◆ TEST_CASE() [10/11]

TEST_CASE ( "ConfigParser are printable."  ,
""  [ConfigParser] 
)

Definition at line 1098 of file test_ConfigParser.cpp.

◆ TEST_CASE() [11/11]

TEST_CASE ( "ConfigParser's 'make_app' method returns an application object."  ,
""  [ConfigParser] 
)

Definition at line 1133 of file test_ConfigParser.cpp.