(t *testing.T)
| 142 | } |
| 143 | |
| 144 | func TestComplete(t *testing.T) { |
| 145 | files := map[string]string{ |
| 146 | // rill.yaml |
| 147 | `rill.yaml`: ``, |
| 148 | // init.sql |
| 149 | `init.sql`: ` |
| 150 | {{ configure "max_version" 2 }} |
| 151 | INSTALL 'hello'; |
| 152 | `, |
| 153 | // source s1 |
| 154 | `sources/s1.yaml`: ` |
| 155 | connector: s3 |
| 156 | path: hello |
| 157 | `, |
| 158 | // source s2 |
| 159 | `sources/s2.sql`: ` |
| 160 | -- @connector: postgres |
| 161 | -- @refresh.cron: 0 0 * * * |
| 162 | SELECT 1 |
| 163 | `, |
| 164 | // model m1 |
| 165 | `models/m1.sql`: ` |
| 166 | SELECT 1 |
| 167 | `, |
| 168 | // model m2 |
| 169 | `models/m2.sql`: ` |
| 170 | SELECT * FROM m1 |
| 171 | `, |
| 172 | `models/m2.yaml`: ` |
| 173 | materialize: true |
| 174 | `, |
| 175 | // dashboard d1 |
| 176 | `metrics/d1.yaml`: ` |
| 177 | version: 1 |
| 178 | type: metrics_view |
| 179 | model: m2 |
| 180 | dimensions: |
| 181 | - name: a |
| 182 | column: a |
| 183 | measures: |
| 184 | - name: b |
| 185 | expression: count(*) |
| 186 | format_d3: "0,0" |
| 187 | format_d3_locale: |
| 188 | currency: ["£", ""] |
| 189 | first_day_of_week: 7 |
| 190 | first_month_of_year: 3 |
| 191 | `, |
| 192 | // explore e1 |
| 193 | `explores/e1.yaml`: ` |
| 194 | type: explore |
| 195 | display_name: E1 |
| 196 | metrics_view: d1 |
| 197 | measures: |
| 198 | - b |
| 199 | time_ranges: |
| 200 | - P2W |
| 201 | - range: P4W |
nothing calls this directly
no test coverage detected