(t *testing.T)
| 198 | } |
| 199 | |
| 200 | func TestGetIdToObject(t *testing.T) { |
| 201 | |
| 202 | wrapper, dbResource := GetResourceWithName("world") |
| 203 | defer wrapper.db.Close() |
| 204 | |
| 205 | tx, _ := wrapper.Beginx() |
| 206 | defer tx.Rollback() |
| 207 | dbResource.GetIdToObject("world", 1, tx) |
| 208 | |
| 209 | if !wrapper.HasExecuted("SELECT * FROM world WHERE id =") { |
| 210 | t.Errorf("Expected query not fired") |
| 211 | t.FailNow() |
| 212 | } |
| 213 | |
| 214 | } |
| 215 | |
| 216 | func TestGetActionsByType(t *testing.T) { |
| 217 |
nothing calls this directly
no test coverage detected