(t *testing.T)
| 139 | } |
| 140 | |
| 141 | func TestGetReferenceIdToObject(t *testing.T) { |
| 142 | |
| 143 | wrapper, dbResource := GetResource() |
| 144 | defer wrapper.db.Close() |
| 145 | |
| 146 | tx, _ := wrapper.Beginx() |
| 147 | defer tx.Rollback() |
| 148 | _, _ = dbResource.Cruds["world"].GetReferenceIdToObjectWithTransaction("world", daptinid.DaptinReferenceId(uuid.New()), tx) |
| 149 | |
| 150 | if !wrapper.HasExecuted("SELECT * FROM world WHERE reference_id =") { |
| 151 | t.Errorf("Expected query not fired") |
| 152 | t.FailNow() |
| 153 | } |
| 154 | |
| 155 | } |
| 156 | |
| 157 | func TestUserGroupNameToId(t *testing.T) { |
| 158 |
nothing calls this directly
no test coverage detected