(app core.App)
| 116 | } |
| 117 | |
| 118 | func getTotalViews(app core.App) (int, error) { |
| 119 | var total int |
| 120 | |
| 121 | err := app.DB().Select("count(*)"). |
| 122 | From("sqlite_master"). |
| 123 | AndWhere(dbx.NewExp("sql is not null")). |
| 124 | AndWhere(dbx.HashExp{"type": "view"}). |
| 125 | Row(&total) |
| 126 | |
| 127 | return total, err |
| 128 | } |
| 129 | |
| 130 | func TestSingleVsMultipleValuesNormalization(t *testing.T) { |
| 131 | t.Parallel() |
no test coverage detected
searching dependent graphs…