mirror of
				https://github.com/fluxcd/flux2.git
				synced 2025-10-31 16:26:36 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			204 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			204 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| // +build unit
 | |
| 
 | |
| package main
 | |
| 
 | |
| import (
 | |
| 	"testing"
 | |
| )
 | |
| 
 | |
| func TestVersion(t *testing.T) {
 | |
| 	cmd := cmdTestCase{
 | |
| 		args:        "--version",
 | |
| 		goldenValue: "flux version 0.0.0-dev.0\n",
 | |
| 	}
 | |
| 	cmd.runTestCmd(t)
 | |
| }
 | 
