di/injection/annotation/inject_test.go

30 lines
479 B
Go
Raw Permalink Normal View History

2017-12-05 13:28:42 +00:00
package annotation
import (
"testing"
)
func TestParseInject(t *testing.T) {
2018-03-15 07:32:04 +00:00
// a1 := "@Inject"
// a, err := ParseInject(a1)
// if nil != err {
// log.Printf("%v", err)
// }
// log.Printf("%v", a)
2017-12-05 13:28:42 +00:00
2018-03-15 07:32:04 +00:00
// a2 := "@Inject()"
// a, err = ParseInject(a2)
// if nil != err {
// log.Printf("%v", err)
// }
// log.Printf("%v", a)
2017-12-05 13:28:42 +00:00
2018-03-15 07:32:04 +00:00
// a3 := "@Inject(name=string)"
// a, err = ParseInject(a3)
// if nil != err {
// log.Printf("%v", err)
// }
// log.Printf("%v", a)
2017-12-05 13:28:42 +00:00
}