github.com/RevenueMonster/sqlike@v1.0.6/sqlike/actions/find_test.go (about) 1 package actions 2 3 import ( 4 "testing" 5 6 "github.com/stretchr/testify/require" 7 ) 8 9 func TestFindActions(t *testing.T) { 10 act := new(FindActions) 11 12 require.Panics(t, func() { 13 act.From() 14 }) 15 16 act.From("db", "table") 17 require.Equal(t, "db", act.Database) 18 require.Equal(t, "table", act.Table) 19 }