MCPcopy Index your code
hub / github.com/sqlc-dev/sqlc / newEdit

Function newEdit

internal/source/mutate_test.go:9–11  ·  view source on GitHub ↗

newEdit is a testing helper for quickly generating Edits

(loc int, old, new string)

Source from the content-addressed store, hash-verified

7
8// newEdit is a testing helper for quickly generating Edits
9func newEdit(loc int, old, new string) Edit {
10 return Edit{Location: loc, Old: old, New: new}
11}
12
13// TestMutateSingle tests almost every possibility of a single edit
14func TestMutateSingle(t *testing.T) {

Callers 4

TestMutateSingleFunction · 0.85
TestMutateMultiFunction · 0.85
TestMutateErrorSingleFunction · 0.85
TestMutateErrorMultiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected