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

Test suite for text_eval_parser VCS functionality. More...

#include <qa_utils/wx_utils/unit_test_utils.h>
#include <text_eval/text_eval_wrapper.h>
#include <git/git_backend.h>
#include <git/libgit_backend.h>
#include <chrono>
#include <regex>

Go to the source code of this file.

Classes

struct  VCS_TEST_FIXTURE
 Fixture to set up and tear down the git backend for VCS tests. More...
 

Functions

 BOOST_AUTO_TEST_CASE (VcsIdentifierFormatting)
 Test VCS identifier functions with various lengths.
 
 BOOST_AUTO_TEST_CASE (VcsBranchAndAuthorInfo)
 Test VCS branch and author information.
 
 BOOST_AUTO_TEST_CASE (VcsDirtyStatus)
 Test VCS dirty status functions.
 
 BOOST_AUTO_TEST_CASE (VcsDirtySuffix)
 Test VCS dirty suffix functions.
 
 BOOST_AUTO_TEST_CASE (VcsLabelsAndDistance)
 Test VCS label and distance functions.
 
 BOOST_AUTO_TEST_CASE (VcsCommitDate)
 Test VCS commit date formatting.
 
 BOOST_AUTO_TEST_CASE (VcsPerformance)
 Test performance of VCS operations.
 
 BOOST_AUTO_TEST_CASE (VcsMixedExpressions)
 Test mixed VCS and non-VCS expressions.
 

Detailed Description

Test suite for text_eval_parser VCS functionality.

Definition in file test_text_eval_parser_vcs.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/8]

BOOST_AUTO_TEST_CASE ( VcsBranchAndAuthorInfo )

Test VCS branch and author information.

Definition at line 118 of file test_text_eval_parser_vcs.cpp.

References EXPRESSION_EVALUATOR::Evaluate(), and EXPRESSION_EVALUATOR::HasErrors().

◆ BOOST_AUTO_TEST_CASE() [2/8]

BOOST_AUTO_TEST_CASE ( VcsCommitDate )

◆ BOOST_AUTO_TEST_CASE() [3/8]

BOOST_AUTO_TEST_CASE ( VcsDirtyStatus )

Test VCS dirty status functions.

Definition at line 164 of file test_text_eval_parser_vcs.cpp.

References EXPRESSION_EVALUATOR::Evaluate(), EXPRESSION_EVALUATOR::HasErrors(), and result.

◆ BOOST_AUTO_TEST_CASE() [4/8]

BOOST_AUTO_TEST_CASE ( VcsDirtySuffix )

Test VCS dirty suffix functions.

Definition at line 205 of file test_text_eval_parser_vcs.cpp.

References EXPRESSION_EVALUATOR::Evaluate(), EXPRESSION_EVALUATOR::HasErrors(), and result.

◆ BOOST_AUTO_TEST_CASE() [5/8]

BOOST_AUTO_TEST_CASE ( VcsIdentifierFormatting )

◆ BOOST_AUTO_TEST_CASE() [6/8]

BOOST_AUTO_TEST_CASE ( VcsLabelsAndDistance )

Test VCS label and distance functions.

Definition at line 241 of file test_text_eval_parser_vcs.cpp.

References EXPRESSION_EVALUATOR::Evaluate(), EXPRESSION_EVALUATOR::HasErrors(), and result.

◆ BOOST_AUTO_TEST_CASE() [7/8]

BOOST_AUTO_TEST_CASE ( VcsMixedExpressions )

Test mixed VCS and non-VCS expressions.

Definition at line 358 of file test_text_eval_parser_vcs.cpp.

References EXPRESSION_EVALUATOR::Evaluate(), EXPRESSION_EVALUATOR::HasErrors(), result, and EXPRESSION_EVALUATOR::SetVariable().

◆ BOOST_AUTO_TEST_CASE() [8/8]

BOOST_AUTO_TEST_CASE ( VcsPerformance )

Test performance of VCS operations.

Definition at line 334 of file test_text_eval_parser_vcs.cpp.

References end, EXPRESSION_EVALUATOR::Evaluate(), EXPRESSION_EVALUATOR::HasErrors(), and result.