Lines Matching refs:t
23 func TestGetJavaPackage(t *testing.T) {
66 t.Run(tt.name, func(t *testing.T) {
70 t.Errorf("JavaPackage() error = %v, wantErr %v", err, tt.wantErr)
74 t.Errorf("JavaPackage() = %v, want %v", got, tt.want)
80 func Test_javaIdentRune(t *testing.T) {
140 check := func(t *testing.T, ch rune, i int, want bool) {
141 t.Helper()
143 t.Errorf("javaIdentRune() = %v, want %v", got, want)
147 t.Run("first", func(t *testing.T) {
148 t.Run("valid", func(t *testing.T) {
150 t.Run(string(ch), func(t *testing.T) {
151 check(t, ch, 0, true)
156 t.Run("invalid", func(t *testing.T) {
158 t.Run(string(ch), func(t *testing.T) {
159 check(t, ch, 0, false)
165 t.Run("part", func(t *testing.T) {
166 t.Run("valid", func(t *testing.T) {
168 t.Run(string(ch), func(t *testing.T) {
169 check(t, ch, 1, true)
174 t.Run("invalid", func(t *testing.T) {
176 t.Run(string(ch), func(t *testing.T) {
177 check(t, ch, 1, false)