(t *testing.T)
| 17 | } |
| 18 | |
| 19 | func TestWrapRecord(t *testing.T) { |
| 20 | wrapped := WrapRecord(&testRecord) |
| 21 | if wrapped.ID != testRecord.Id { |
| 22 | t.Fatalf("expected record with id %d, %d found", testRecord.Id, wrapped.ID) |
| 23 | } else if !reflect.DeepEqual(*wrapped.record, testRecord) { |
| 24 | t.Fatal("unexpected wrapped record") |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | func TestWrapRecordWithNil(t *testing.T) { |
| 29 | wrapped := WrapRecord(nil) |
nothing calls this directly
no test coverage detected