(t *testing.T)
| 309 | } |
| 310 | |
| 311 | func TestDisplayNameHiddenDir(t *testing.T) { |
| 312 | tests := []struct { |
| 313 | name string |
| 314 | skill Skill |
| 315 | wantName string |
| 316 | }{ |
| 317 | { |
| 318 | name: "hidden-dir skill", |
| 319 | skill: Skill{Name: "code-review", Convention: "hidden-dir"}, |
| 320 | wantName: "[hidden-dir] code-review", |
| 321 | }, |
| 322 | { |
| 323 | name: "hidden-dir-namespaced skill", |
| 324 | skill: Skill{Name: "code-review", Namespace: "monalisa", Convention: "hidden-dir-namespaced"}, |
| 325 | wantName: "[hidden-dir] monalisa/code-review", |
| 326 | }, |
| 327 | } |
| 328 | for _, tt := range tests { |
| 329 | t.Run(tt.name, func(t *testing.T) { |
| 330 | assert.Equal(t, tt.wantName, tt.skill.DisplayName()) |
| 331 | }) |
| 332 | } |
| 333 | } |
| 334 | |
| 335 | func TestValidateName(t *testing.T) { |
| 336 | tests := []struct { |
nothing calls this directly
no test coverage detected