github.com/cloudreve/Cloudreve/v3@v3.0.0-20240224133659-3edb00a6484c/pkg/balancer/balancer_test.go (about) 1 package balancer 2 3 import ( 4 "github.com/stretchr/testify/assert" 5 "testing" 6 ) 7 8 func TestNewBalancer(t *testing.T) { 9 a := assert.New(t) 10 a.NotNil(NewBalancer("")) 11 a.IsType(&RoundRobin{}, NewBalancer("RoundRobin")) 12 }