MCPcopy Create free account
hub / github.com/divan/gotrace / RewriteSource

Method RewriteSource

events.go:134–143  ·  view source on GitHub ↗

RewriteSource attempts to add trace-related code if needed. TODO: add support for multiple files and package selectors

()

Source from the content-addressed store, hash-verified

132// RewriteSource attempts to add trace-related code if needed.
133// TODO: add support for multiple files and package selectors
134func (r *NativeRun) RewriteSource() error {
135 path, err := rewriteSource(r.OrigPath)
136 if err != nil {
137 return err
138 }
139
140 r.Path = path
141
142 return nil
143}
144
145// RawSource implements EventSource for
146// raw events in JSON file.

Callers 1

EventsMethod · 0.95

Calls 1

rewriteSourceFunction · 0.85

Tested by

no test coverage detected