(repo repository.ClockedRepo)
| 141 | } |
| 142 | |
| 143 | func makeTestContextInternal(repo repository.ClockedRepo) (identity.Interface, identity.Interface, entity.Resolvers, Definition) { |
| 144 | id1, err := identity.NewIdentity(repo, "name1", "email1") |
| 145 | if err != nil { |
| 146 | panic(err) |
| 147 | } |
| 148 | err = id1.Commit(repo) |
| 149 | if err != nil { |
| 150 | panic(err) |
| 151 | } |
| 152 | id2, err := identity.NewIdentity(repo, "name2", "email2") |
| 153 | if err != nil { |
| 154 | panic(err) |
| 155 | } |
| 156 | err = id2.Commit(repo) |
| 157 | if err != nil { |
| 158 | panic(err) |
| 159 | } |
| 160 | |
| 161 | resolvers := entity.Resolvers{ |
| 162 | &identity.Identity{}: entity.MakeResolver(id1, id2), |
| 163 | } |
| 164 | |
| 165 | def := Definition{ |
| 166 | Typename: "foo", |
| 167 | Namespace: "foos", |
| 168 | OperationUnmarshaler: unmarshaler, |
| 169 | FormatVersion: 1, |
| 170 | } |
| 171 | |
| 172 | return id1, id2, resolvers, def |
| 173 | } |
no test coverage detected