mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-02-03 00:38:40 +08:00
add more tests
This commit is contained in:
parent
68e46cf6b3
commit
e133ffd820
@ -169,6 +169,8 @@ func TestContainer(t *testing.T) {
|
|||||||
for _, exclusive := range exclusives {
|
for _, exclusive := range exclusives {
|
||||||
t.Run(test.name, func(t *testing.T) {
|
t.Run(test.name, func(t *testing.T) {
|
||||||
c := newContainer(exclusive)
|
c := newContainer(exclusive)
|
||||||
|
assert.Nil(t, c.getValues())
|
||||||
|
|
||||||
for _, order := range test.do {
|
for _, order := range test.do {
|
||||||
if order.act == actionAdd {
|
if order.act == actionAdd {
|
||||||
c.OnAdd(internal.KV{
|
c.OnAdd(internal.KV{
|
||||||
|
Loading…
Reference in New Issue
Block a user