MCPcopy Create free account
hub / github.com/github/gh-aw / TestCreateProjectsConfig_DefaultMax

Function TestCreateProjectsConfig_DefaultMax

pkg/workflow/create_project_test.go:216–230  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

214}
215
216func TestCreateProjectsConfig_DefaultMax(t *testing.T) {
217 compiler := NewCompiler()
218
219 outputMap := map[string]any{
220 "create-project": map[string]any{
221 "target-owner": "myorg",
222 },
223 }
224
225 config := compiler.parseCreateProjectsConfig(outputMap)
226 require.NotNil(t, config)
227
228 // Default max should be 1 when not specified
229 assert.Equal(t, strPtr("1"), config.Max, "Default max should be 1")
230}
231
232func TestCreateProjectsConfig_ViewsParsing(t *testing.T) {
233 compiler := NewCompiler()

Callers

nothing calls this directly

Calls 3

NewCompilerFunction · 0.85
strPtrFunction · 0.85

Tested by

no test coverage detected