mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-03 21:49:32 +01:00 
			
		
		
		
	Approved changes due to "No assertions" warnings now firing correctly on inner sections
This commit is contained in:
		@@ -494,7 +494,27 @@ explicitly with message:
 | 
			
		||||
  Message from section two
 | 
			
		||||
 | 
			
		||||
Message from section one
 | 
			
		||||
-------------------------------------------------------------------------------
 | 
			
		||||
Standard output from all sections is reported
 | 
			
		||||
  one
 | 
			
		||||
-------------------------------------------------------------------------------
 | 
			
		||||
MessageTests.cpp:<line number>
 | 
			
		||||
...............................................................................
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
No assertions in section 'one'
 | 
			
		||||
 | 
			
		||||
Message from section two
 | 
			
		||||
-------------------------------------------------------------------------------
 | 
			
		||||
Standard output from all sections is reported
 | 
			
		||||
  two
 | 
			
		||||
-------------------------------------------------------------------------------
 | 
			
		||||
MessageTests.cpp:<line number>
 | 
			
		||||
...............................................................................
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
No assertions in section 'two'
 | 
			
		||||
 | 
			
		||||
-------------------------------------------------------------------------------
 | 
			
		||||
SCOPED_INFO is reset for each loop
 | 
			
		||||
-------------------------------------------------------------------------------
 | 
			
		||||
@@ -558,6 +578,38 @@ MiscTests.cpp:<line number>: FAILED:
 | 
			
		||||
with expansion:
 | 
			
		||||
  1 == 2
 | 
			
		||||
 | 
			
		||||
-------------------------------------------------------------------------------
 | 
			
		||||
even more nested SECTION tests
 | 
			
		||||
  c
 | 
			
		||||
  d (leaf)
 | 
			
		||||
-------------------------------------------------------------------------------
 | 
			
		||||
MiscTests.cpp:<line number>
 | 
			
		||||
...............................................................................
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
No assertions in section 'd (leaf)'
 | 
			
		||||
 | 
			
		||||
-------------------------------------------------------------------------------
 | 
			
		||||
even more nested SECTION tests
 | 
			
		||||
  c
 | 
			
		||||
  e (leaf)
 | 
			
		||||
-------------------------------------------------------------------------------
 | 
			
		||||
MiscTests.cpp:<line number>
 | 
			
		||||
...............................................................................
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
No assertions in section 'e (leaf)'
 | 
			
		||||
 | 
			
		||||
-------------------------------------------------------------------------------
 | 
			
		||||
even more nested SECTION tests
 | 
			
		||||
  f (leaf)
 | 
			
		||||
-------------------------------------------------------------------------------
 | 
			
		||||
MiscTests.cpp:<line number>
 | 
			
		||||
...............................................................................
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
No assertions in section 'f (leaf)'
 | 
			
		||||
 | 
			
		||||
-------------------------------------------------------------------------------
 | 
			
		||||
looped SECTION tests
 | 
			
		||||
  s1
 | 
			
		||||
@@ -652,6 +704,26 @@ MiscTests.cpp:<line number>: FAILED:
 | 
			
		||||
with expansion:
 | 
			
		||||
  false
 | 
			
		||||
 | 
			
		||||
-------------------------------------------------------------------------------
 | 
			
		||||
xmlentitycheck
 | 
			
		||||
  embedded xml
 | 
			
		||||
-------------------------------------------------------------------------------
 | 
			
		||||
MiscTests.cpp:<line number>
 | 
			
		||||
...............................................................................
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
No assertions in section 'embedded xml'
 | 
			
		||||
 | 
			
		||||
-------------------------------------------------------------------------------
 | 
			
		||||
xmlentitycheck
 | 
			
		||||
  encoded chars
 | 
			
		||||
-------------------------------------------------------------------------------
 | 
			
		||||
MiscTests.cpp:<line number>
 | 
			
		||||
...............................................................................
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
No assertions in section 'encoded chars'
 | 
			
		||||
 | 
			
		||||
-------------------------------------------------------------------------------
 | 
			
		||||
send a single char to INFO
 | 
			
		||||
-------------------------------------------------------------------------------
 | 
			
		||||
@@ -797,6 +869,6 @@ with expansion:
 | 
			
		||||
  "first" == "second"
 | 
			
		||||
 | 
			
		||||
===============================================================================
 | 
			
		||||
test cases: 159 | 119 passed | 39 failed |  1 failed as expected
 | 
			
		||||
assertions: 788 | 695 passed | 80 failed | 13 failed as expected
 | 
			
		||||
test cases: 160 | 117 passed | 42 failed |  1 failed as expected
 | 
			
		||||
assertions: 927 | 827 passed | 87 failed | 13 failed as expected
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user