mirror of
				https://github.com/cloudreve/cloudreve.git
				synced 2025-10-31 16:49:03 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			217 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			217 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package balancer
 | |
| 
 | |
| import (
 | |
| 	"github.com/stretchr/testify/assert"
 | |
| 	"testing"
 | |
| )
 | |
| 
 | |
| func TestNewBalancer(t *testing.T) {
 | |
| 	a := assert.New(t)
 | |
| 	a.NotNil(NewBalancer(""))
 | |
| 	a.IsType(&RoundRobin{}, NewBalancer("RoundRobin"))
 | |
| }
 | 
