MCPcopy Index your code
hub / github.com/Masterminds/squirrel / TestSelectBuilderSimpleJoin

Function TestSelectBuilderSimpleJoin

select_test.go:147–159  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

145}
146
147func TestSelectBuilderSimpleJoin(t *testing.T) {
148
149 expectedSql := "SELECT * FROM bar JOIN baz ON bar.foo = baz.foo"
150 expectedArgs := []interface{}(nil)
151
152 b := Select("*").From("bar").Join("baz ON bar.foo = baz.foo")
153
154 sql, args, err := b.ToSql()
155 assert.NoError(t, err)
156
157 assert.Equal(t, expectedSql, sql)
158 assert.Equal(t, args, expectedArgs)
159}
160
161func TestSelectBuilderParamJoin(t *testing.T) {
162

Callers

nothing calls this directly

Calls 4

SelectFunction · 0.85
JoinMethod · 0.80
ToSqlMethod · 0.65
FromMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…