github.com/octohelm/storage@v0.0.0-20240516030302-1ac2cc1ea347/pkg/sqlbuilder/assignment_test.go (about) 1 package sqlbuilder_test 2 3 import ( 4 "context" 5 "testing" 6 7 "github.com/octohelm/storage/internal/testutil" 8 . "github.com/octohelm/storage/pkg/sqlbuilder" 9 ) 10 11 func TestAssignment(t *testing.T) { 12 t.Run("ColumnsAndValues", func(t *testing.T) { 13 testutil.ShouldBeExpr(t, 14 ColumnsAndValues(Cols("a", "b"), 1, 2, 3, 4).Ex(ContextWithToggles(context.Background(), Toggles{ 15 ToggleUseValues: true, 16 })), 17 "(a,b) VALUES (?,?),(?,?)", 1, 2, 3, 4, 18 ) 19 }) 20 }