add more tests

master
kevin 4 years ago
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…
Cancel
Save