mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	 004db4728b
			
		
	
	
		004db4728b
		
	
	
	
	
		
			
			We compile each test file to LLVM IR assembly, and then pass that IR to a dedicated program that can decode LLVM coverage maps and print them in a more human-readable format. We can then check that output against known-good snapshots. This test suite has some advantages over the existing `run-coverage` tests: - We can test coverage instrumentation without needing to run target binaries. - We can observe subtle improvements/regressions in the underlying coverage mappings that don't make a visible difference to coverage reports.
		
			
				
	
	
		
			4 lines
		
	
	
		
			47 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			4 lines
		
	
	
		
			47 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // compile-flags: --edition=2021
 | |
| 
 | |
| fn main() {}
 |