github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/app/logevents/provider_test.go (about) 1 package logevents 2 3 import ( 4 "fmt" 5 "os" 6 "testing" 7 ) 8 9 func TestProvider(t *testing.T) { 10 11 } 12 13 func TestSubscriber(t *testing.T) { 14 s := &subscriber{ 15 fileMap: make(map[string]*os.File), 16 } 17 18 for i := 1; i < 100; i++ { 19 s.onEvent(fmt.Sprintf("192.168.0.%d.log", i%6), "test\n") 20 } 21 }