(t *testing.T)
| 391 | } |
| 392 | |
| 393 | func Test_DB_GetOne(t *testing.T) { |
| 394 | table := "A_tables" |
| 395 | createInitTable(table) |
| 396 | gtest.C(t, func(t *gtest.T) { |
| 397 | record, err := db.GetOne(ctx, fmt.Sprintf("SELECT * FROM %s WHERE account_name=?", table), "name_4") |
| 398 | t.AssertNil(err) |
| 399 | t.Assert(record["ACCOUNT_NAME"].String(), "name_4") |
| 400 | }) |
| 401 | } |
| 402 | |
| 403 | func Test_DB_GetValue(t *testing.T) { |
| 404 | table := "A_tables" |