MCPcopy Create free account
hub / github.com/dolthub/doltgresql / Collection

Function Collection

testing/generation/utils/statement_generator.go:387–392  ·  view source on GitHub ↗

Collection creates a new StatementGenerator representing a CollectionGen.

(children ...StatementGenerator)

Source from the content-addressed store, hash-verified

385
386// Collection creates a new StatementGenerator representing a CollectionGen.
387func Collection(children ...StatementGenerator) *CollectionGen {
388 return &CollectionGen{
389 children: copyGenerators(children),
390 localInt: new(big.Int),
391 }
392}
393
394// AddChildren implements the interface StatementGenerator.
395func (c *CollectionGen) AddChildren(children ...StatementGenerator) error {

Callers 7

mainFunction · 0.92
NewParenScopeMethod · 0.70
OptionalRepeatMethod · 0.70
aggregateMethod · 0.70
CopyMethod · 0.70
OptionalFunction · 0.70
UnsetVariablesFunction · 0.70

Calls 1

copyGeneratorsFunction · 0.85

Tested by

no test coverage detected