Find all:
On\("(.+)",\s
Replace with:
EXPECT().$1(
Find all:
&mocks.(.+)\{\}
Replace with
mocks.New$1(t)
Find all
- name: "(\w+)"\n\s+path: (".+")\n\s+(engine: .+)\n\s+(schema: .+)\n\s+(queries: .+)\n\s+emit_interface: true
Replace with
- name: "$1"
$3
$4
$5
gen:
go:
package: "$1"
out: $2
emit_interface: true
Additionally should change version to "2", remove "project" if present and rename key
packages
tosql