queue_go/queue_test.go
2017-04-26 16:04:28 +09:00

22 lines
321 B
Go

package queue
import (
"fmt"
"loafle.com/overflow/agent_api/observer"
"testing"
)
func TestNewQueue(t *testing.T) {
lq := NewQueue(EVENT_TYPE, 5)
typeEvent := lq.StringType(EVENT_TYPE)
observer.Notify(typeEvent, "data")
re := lq.GetItems()
for it, val := range re {
fmt.Println(val)
fmt.Println(it)
}
}