@@ -591,7 +591,11 @@ TEST_CASE(
591
591
checkLambdaName (expectedLambdaName, iter);
592
592
checkLambdaCallScope (
593
593
iter,
594
- function_info_matchers{.specsMatcher = Catch::Matchers::Equals (" const" )});
594
+ function_info_matchers<
595
+ Catch::Matchers::IsEmptyMatcher,
596
+ Catch::Matchers::IsEmptyMatcher,
597
+ Catch::Matchers::StringEqualsMatcher>{
598
+ .specsMatcher = Catch::Matchers::Equals (" const" )});
595
599
596
600
auto const topLevelScope = iter ();
597
601
CHECK (topLevelScope);
@@ -615,7 +619,11 @@ TEST_CASE(
615
619
checkLambdaName (" my_typeLambda" , iter);
616
620
checkLambdaCallScope (
617
621
iter,
618
- function_info_matchers{.specsMatcher = Catch::Matchers::Equals (" const" )});
622
+ function_info_matchers<
623
+ Catch::Matchers::IsEmptyMatcher,
624
+ Catch::Matchers::IsEmptyMatcher,
625
+ Catch::Matchers::StringEqualsMatcher>{
626
+ .specsMatcher = Catch::Matchers::Equals (" const" )});
619
627
checkTopLevel (iter);
620
628
REQUIRE_FALSE (iter ());
621
629
}
@@ -631,7 +639,10 @@ TEST_CASE(
631
639
checkLambdaName (" my_typeUnaryLambda" , iter);
632
640
checkLambdaCallScope (
633
641
iter,
634
- function_info_matchers{
642
+ function_info_matchers<
643
+ Catch::Matchers::IsEmptyMatcher,
644
+ Catch::Matchers::StringEqualsMatcher,
645
+ Catch::Matchers::StringEqualsMatcher>{
635
646
.argListMatcher = Catch::Matchers::Equals (" int" ),
636
647
.specsMatcher = Catch::Matchers::Equals (" const" )});
637
648
checkTopLevel (iter);
@@ -649,7 +660,10 @@ TEST_CASE(
649
660
checkLambdaName (" my_typeBinaryLambda" , iter);
650
661
checkLambdaCallScope (
651
662
iter,
652
- function_info_matchers{
663
+ function_info_matchers<
664
+ Catch::Matchers::IsEmptyMatcher,
665
+ Catch::Matchers::RegexMatcher,
666
+ Catch::Matchers::StringEqualsMatcher>{
653
667
.argListMatcher = Catch::Matchers::Matches (R"( int,\s?float)" ),
654
668
.specsMatcher = Catch::Matchers::Equals (" const" )});
655
669
checkTopLevel (iter);
@@ -681,7 +695,11 @@ TEST_CASE(
681
695
checkLambdaName (" my_typeNoexceptLambda" , iter);
682
696
checkLambdaCallScope (
683
697
iter,
684
- function_info_matchers{.specsMatcher = Catch::Matchers::Equals (" const" )});
698
+ function_info_matchers<
699
+ Catch::Matchers::IsEmptyMatcher,
700
+ Catch::Matchers::IsEmptyMatcher,
701
+ Catch::Matchers::StringEqualsMatcher>{
702
+ .specsMatcher = Catch::Matchers::Equals (" const" )});
685
703
checkTopLevel (iter);
686
704
REQUIRE_FALSE (iter ());
687
705
}
@@ -697,10 +715,18 @@ TEST_CASE(
697
715
checkLambdaName (" my_typeNestedLambda" , iter);
698
716
checkLambdaCallScope (
699
717
iter,
700
- function_info_matchers{.specsMatcher = Catch::Matchers::Equals (" const" )});
718
+ function_info_matchers<
719
+ Catch::Matchers::IsEmptyMatcher,
720
+ Catch::Matchers::IsEmptyMatcher,
721
+ Catch::Matchers::StringEqualsMatcher>{
722
+ .specsMatcher = Catch::Matchers::Equals (" const" )});
701
723
checkLambdaCallScope (
702
724
iter,
703
- function_info_matchers{.specsMatcher = Catch::Matchers::Equals (" const" )});
725
+ function_info_matchers<
726
+ Catch::Matchers::IsEmptyMatcher,
727
+ Catch::Matchers::IsEmptyMatcher,
728
+ Catch::Matchers::StringEqualsMatcher>{
729
+ .specsMatcher = Catch::Matchers::Equals (" const" )});
704
730
checkTopLevel (iter);
705
731
REQUIRE_FALSE (iter ());
706
732
}
@@ -716,10 +742,17 @@ TEST_CASE(
716
742
checkLambdaName (" my_typeComplexNestedLambda" , iter);
717
743
checkLambdaCallScope (
718
744
iter,
719
- function_info_matchers{.specsMatcher = Catch::Matchers::Equals (" const" )});
745
+ function_info_matchers<
746
+ Catch::Matchers::IsEmptyMatcher,
747
+ Catch::Matchers::IsEmptyMatcher,
748
+ Catch::Matchers::StringEqualsMatcher>{
749
+ .specsMatcher = Catch::Matchers::Equals (" const" )});
720
750
checkLambdaCallScope (
721
751
iter,
722
- function_info_matchers{
752
+ function_info_matchers<
753
+ Catch::Matchers::IsEmptyMatcher,
754
+ Catch::Matchers::RegexMatcher,
755
+ Catch::Matchers::StringEqualsMatcher>{
723
756
.argListMatcher = Catch::Matchers::Matches (R"( int,\s?float)" ),
724
757
.specsMatcher = Catch::Matchers::Equals (" const" )});
725
758
checkTopLevel (iter);
@@ -845,7 +878,11 @@ TEST_CASE(
845
878
checkTemplateFunctionScope (
846
879
iter,
847
880
Catch::Matchers::Equals (" my_typeTemplateFreeFunction" ),
848
- template_info_matchers{.argListMatcher = Catch::Matchers::Equals (" int" )},
881
+ function_info_matchers<
882
+ Catch::Matchers::IsEmptyMatcher,
883
+ Catch::Matchers::StringEqualsMatcher,
884
+ Catch::Matchers::IsEmptyMatcher>{
885
+ .argListMatcher = Catch::Matchers::Equals (" int" )},
849
886
function_info_matchers{});
850
887
checkNamedScope (
851
888
iter,
@@ -933,7 +970,11 @@ TEST_CASE(
933
970
checkTemplateFunctionScope (
934
971
iter,
935
972
Catch::Matchers::Equals (" my_typeTemplateFreeFunction" ),
936
- template_info_matchers{.argListMatcher = Catch::Matchers::Equals (" int" )},
973
+ function_info_matchers<
974
+ Catch::Matchers::IsEmptyMatcher,
975
+ Catch::Matchers::StringEqualsMatcher,
976
+ Catch::Matchers::IsEmptyMatcher>{
977
+ .argListMatcher = Catch::Matchers::Equals (" int" )},
937
978
function_info_matchers{});
938
979
checkNamedScope (
939
980
iter,
0 commit comments