di-go/annotation/annotation_test.go

21 lines
557 B
Go
Raw Permalink Normal View History

2018-04-10 12:08:21 +00:00
package annotation
import (
"log"
"testing"
)
func TestSplitAnnotation(t *testing.T) {
s := "@overflow:RequestMapping(method='POST', entry='/account/signin', params='[signinID, signinPW]');@overflow:RequestMapping1(method='POST1', entry='/account/signin1', params='[signinID1, signinPW1]')"
ss, _ := splitAnnotation(s)
log.Printf("%v", ss)
}
2019-11-11 14:41:01 +00:00
// func TestSplitAnnotationAttribute(t *testing.T) {
// s := "method='POST', entry='/account/signin', params='[signinID, signinPW]'"
// ss, _ := splitAnnotationAttribute(s)
2018-04-10 12:08:21 +00:00
2019-11-11 14:41:01 +00:00
// log.Printf("%v", ss)
// }