mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 07:50:25 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			357 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			357 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package installers
 | 
						|
 | 
						|
import (
 | 
						|
	_ "github.com/iwind/TeaGo/bootstrap"
 | 
						|
	"testing"
 | 
						|
)
 | 
						|
 | 
						|
func TestBaseInstaller_LookupLatest(t *testing.T) {
 | 
						|
	installer := &BaseInstaller{}
 | 
						|
	result, err := installer.LookupLatestInstaller("edge-node-linux-amd64")
 | 
						|
	if err != nil {
 | 
						|
		t.Fatal(err)
 | 
						|
	}
 | 
						|
	if len(result) == 0 {
 | 
						|
		t.Log("not found")
 | 
						|
		return
 | 
						|
	}
 | 
						|
 | 
						|
	t.Log("result:", result)
 | 
						|
}
 |