MCPcopy Create free account
hub / github.com/corestoreio/pkg / compareToSQL

Function compareToSQL

sql/dml/dml_test.go:290–325  ·  view source on GitHub ↗

compareToSQL compares a SQL object with a placeholder string and an optional interpolated string. This function also exists in file dml_public_test.go to avoid import cycles when using a single package dedicated for testing.

(
	t testing.TB, qb QueryBuilder, wantErr bool,
	wantSQLPlaceholders, wantSQLInterpolated string,
	wantArgs ...any,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

TestConditionOpRuneFunction · 0.70
TestConditionOpArgsFunction · 0.70
TestCondition_ColumnFunction · 0.70
TestConditionExprFunction · 0.70
TestConditionAppendArgsFunction · 0.70
TestSQLCase_PlaceHoldersFunction · 0.70
TestWith_PlaceholderFunction · 0.70
TestWith_ToSQLFunction · 0.70
TestNewWithFunction · 0.70
TestInsert_FromSelectFunction · 0.70

Calls 3

InterpolateMethod · 0.80
ToSQLMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected