gobuf/inject_tag_test.go

18 lines
319 B
Go
Raw Permalink Normal View History

2023-03-22 15:47:36 +00:00
package gobuf
import (
"github.com/stretchr/testify/assert"
"testing"
)
func TestInjectTag_Inject(t *testing.T) {
var parser = NewInjectTag("./example.pb.go")
2023-06-25 15:02:26 +00:00
err := parser.WithTags(InjectTagProps{
TagName: "bson",
}, InjectTagProps{
TagName: "pson",
Style: LowerCase,
}).Inject()
2023-03-22 15:47:36 +00:00
assert.Nil(t, err)
}