You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
	
	
		
			32 lines
		
	
	
		
			448 B
		
	
	
	
		
			Plaintext
		
	
		
		
			
		
	
	
			32 lines
		
	
	
		
			448 B
		
	
	
	
		
			Plaintext
		
	
| 
								 
											6 years ago
										 
									 | 
							
								exec go test -v
							 | 
						||
| 
								 | 
							
								stdout 'PASS.*TestFoo'
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								garble test -v
							 | 
						||
| 
								 | 
							
								stdout 'PASS.*TestFoo'
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								garble test -c -vet=off
							 | 
						||
| 
								 | 
							
								bingrep bar.test$exe 'TestFoo'
							 | 
						||
| 
								 | 
							
								! bingrep bar.test$exe 'ImportedVar'
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								-- go.mod --
							 | 
						||
| 
								 | 
							
								module foo.com/bar
							 | 
						||
| 
								 | 
							
								-- bar.go --
							 | 
						||
| 
								 | 
							
								package bar
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func Foo() string { return "Foo" }
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								var ImportedVar = "imported var value"
							 | 
						||
| 
								 | 
							
								-- bar_test.go --
							 | 
						||
| 
								 | 
							
								package bar
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import (
							 | 
						||
| 
								 | 
							
									"testing"
							 | 
						||
| 
								 | 
							
								)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func TestFoo(t *testing.T) {
							 | 
						||
| 
								 | 
							
									t.Log(ImportedVar)
							 | 
						||
| 
								 | 
							
									if Foo() != "Foo" {
							 | 
						||
| 
								 | 
							
										t.FailNow()
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
								}
							 |