MCPcopy
hub / github.com/google/go-jsonnet / typeErrorSpecific

Method typeErrorSpecific

interpreter.go:1047–1051  ·  view source on GitHub ↗
(bad value, good value)

Source from the content-addressed store, hash-verified

1045}
1046
1047func (i *interpreter) typeErrorSpecific(bad value, good value) error {
1048 return i.Error(
1049 fmt.Sprintf("Unexpected type %v, expected %v", bad.getType().name, good.getType().name),
1050 )
1051}
1052
1053func (i *interpreter) typeErrorGeneral(bad value) error {
1054 return i.Error(

Callers 10

getNumberMethod · 0.95
getStringMethod · 0.95
getBooleanMethod · 0.95
getArrayMethod · 0.95
getFunctionMethod · 0.95
getObjectMethod · 0.95
builtinPlusFunction · 0.80
builtinFlatMapArrayFunction · 0.80
joinArraysFunction · 0.80
joinStringsFunction · 0.80

Calls 2

ErrorMethod · 0.95
getTypeMethod · 0.65

Tested by

no test coverage detected