MCPcopy
hub / github.com/cweill/gotests / String

Method String

internal/models/models.go:18–27  ·  view source on GitHub ↗

String returns the string representation of the expression, including pointer and variadic prefixes.

()

Source from the content-addressed store, hash-verified

16
17// String returns the string representation of the expression, including pointer and variadic prefixes.
18func (e *Expression) String() string {
19 value := e.Value
20 if e.IsStar {
21 value = "*" + value
22 }
23 if e.IsVariadic {
24 return "[]" + value
25 }
26 return value
27}
28
29// Field represents a parameter, result, or struct field in a function or method signature.
30type Field struct {

Callers 15

fieldNameFunction · 0.45
fieldTypeFunction · 0.45
TestRender_HeaderFunction · 0.45
TestRender_TestFunctionFunction · 0.45
buildPromptFunction · 0.45
buildFunctionSignatureFunction · 0.45
buildTestScaffoldFunction · 0.45
buildGoPromptFunction · 0.45
exprToStringFunction · 0.45
ParseMethod · 0.45
parseFilesMethod · 0.45
parseTypesMethod · 0.45

Calls

no outgoing calls

Tested by 3

TestRender_HeaderFunction · 0.36
TestRender_TestFunctionFunction · 0.36
TestExpression_StringFunction · 0.36