MCPcopy Create free account
hub / github.com/cli/cli / TestAcceptanceScriptsDeclareFixtureRepository

Function TestAcceptanceScriptsDeclareFixtureRepository

acceptance/user_capability_test.go:168–178  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

166}
167
168func TestAcceptanceScriptsDeclareFixtureRepository(t *testing.T) {
169 files, err := filepath.Glob(filepath.Join("testdata", "*", "*.txtar"))
170 require.NoError(t, err)
171 require.NotEmpty(t, files)
172
173 for _, file := range files {
174 t.Run(file, func(t *testing.T) {
175 require.NoError(t, validateFixtureRepositoryDeclaration(file))
176 })
177 }
178}
179
180func TestRequiresUserCapabilityForScript(t *testing.T) {
181 tests := []struct {

Callers

nothing calls this directly

Calls 3

JoinMethod · 0.80
RunMethod · 0.65

Tested by

no test coverage detected