mirror of
				https://github.com/singchia/frontier.git
				synced 2025-10-31 19:43:51 +08:00 
			
		
		
		
	config: gen default configuration file
This commit is contained in:
		
							
								
								
									
										18
									
								
								pkg/frontlas/config/config_test.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								pkg/frontlas/config/config_test.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| package config | ||||
|  | ||||
| import ( | ||||
| 	"os" | ||||
| 	"testing" | ||||
| ) | ||||
|  | ||||
| func TestGenDefaultConfig(t *testing.T) { | ||||
| 	file, err := os.OpenFile("../../../etc/frontlas.yaml", os.O_CREATE|os.O_RDWR, 0666) | ||||
| 	if err != nil { | ||||
| 		t.Error(err) | ||||
| 	} | ||||
| 	defer file.Close() | ||||
| 	err = genDefaultConfig(file) | ||||
| 	if err != nil { | ||||
| 		t.Error(err) | ||||
| 	} | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 singchia
					singchia