MCPcopy Index your code
hub / github.com/1Password/for-open-source / loadIssue

Function loadIssue

script/testing.go:139–151  ·  view source on GitHub ↗
(issue interface{})

Source from the content-addressed store, hash-verified

137}
138
139func loadIssue(issue interface{}) error {
140 data, err := os.ReadFile("./script/mock-issue.json")
141
142 if err != nil {
143 return fmt.Errorf("unable to read file: %v", err)
144 }
145
146 if err := json.Unmarshal(data, issue); err != nil {
147 return fmt.Errorf("unable to unmarshal JSON: %v", err)
148 }
149
150 return nil
151}
152
153func setIssueProperties(application *TestApplicationSet, issue *github.Issue) error {
154 issue.Title = &application.issueTitle

Callers 1

setTestApplicationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected