MCPcopy
hub / github.com/purpleidea/mgmt / NewType

Function NewType

lang/types/type.go:383–386  ·  view source on GitHub ↗

NewType creates the Type from the string representation.

(s string)

Source from the content-addressed store, hash-verified

381
382// NewType creates the Type from the string representation.
383func NewType(s string) *Type {
384 table := make(map[uint]*Elem)
385 return newType(s, table)
386}
387
388// newType creates the Type from the string representation. This private version
389// takes a table so that we can collect unification variables as we see them and

Callers 15

TestValueOfJSON0Function · 0.92
TestValueOfJSON1Function · 0.92
TypeMatchFunction · 0.92
initFunction · 0.92
TypeMatchFunction · 0.92
StructRegisterFunction · 0.92
InfoMethod · 0.92
InfoMethod · 0.92
InfoMethod · 0.92
InfoMethod · 0.92
replaceSubGraphMethod · 0.92
listTypeMethod · 0.92

Calls 1

newTypeFunction · 0.85

Tested by 15

TestValueOfJSON0Function · 0.74
TestValueOfJSON1Function · 0.74
InfoMethod · 0.74
TestLexParse0Function · 0.74
TestUnification1Function · 0.74
TestUnifyTableFunction · 0.74
TestType0Function · 0.68
TestType1Function · 0.68
TestType3Function · 0.68
TestComplexCmp0Function · 0.68
TestTypeCopy0Function · 0.68
TestUni0Function · 0.68