oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1package plan3test
2
3import "testing"
4
5func TestFinalFixSQLDefaults(t *testing.T) {
6 f := newFixture(t)
7 for name, want := range map[string]string{"kind": "'bug'", "replacement_id": "''", "replaces_id": "''"} {
8 var got string
9 must(t, f.DB.Writer().QueryRow("SELECT dflt_value FROM pragma_table_info('tasks') WHERE name=?", name).Scan(&got))
10 if got != want {
11 t.Errorf("%s default %s, want %s", name, got, want)
12 }
13 }
14}
15