implement marshalling of events

This commit is contained in:
Marten Seemann
2020-01-21 11:02:40 +07:00
parent 572ef44cf2
commit e6d55ac467
4 changed files with 135 additions and 0 deletions

15
qlog/types_test.go Normal file
View File

@@ -0,0 +1,15 @@
package qlog
import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
var _ = Describe("Types", func() {
It("has a string representation for the category", func() {
Expect(categoryConnectivity.String()).To(Equal("connectivity"))
Expect(categoryTransport.String()).To(Equal("transport"))
Expect(categoryRecovery.String()).To(Equal("recovery"))
Expect(categorySecurity.String()).To(Equal("security"))
})
})