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

Function strPtr

pkg/workflow/test_helpers_shared_test.go:16–18  ·  view source on GitHub ↗

strPtr returns a pointer to a string value. This is a shared helper used by tests to create *string values for templatable fields.

(s string)

Source from the content-addressed store, hash-verified

14// strPtr returns a pointer to a string value.
15// This is a shared helper used by tests to create *string values for templatable fields.
16func strPtr(s string) *string {
17 return new(s)
18}
19
20// templatableBoolPtr returns a pointer to a TemplatableBool value.
21func templatableBoolPtr(s string) *TemplatableBool {

Calls

no outgoing calls

Tested by

no test coverage detected