Test: balancer / auth / controller in pkg

This commit is contained in:
HFO4
2021-11-11 20:56:16 +08:00
parent f0089045d7
commit 416f4c1dd2
15 changed files with 375 additions and 285 deletions

View File

@@ -0,0 +1,12 @@
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"))
}