(t *testing.T)
| 53 | } |
| 54 | |
| 55 | func TestStackIncompatibleType(t *testing.T) { |
| 56 | file := fmt.Sprintf("test_db_%d", time.Now().UnixNano()) |
| 57 | pq, err := OpenPriorityQueue(file, ASC) |
| 58 | if err != nil { |
| 59 | t.Error(err) |
| 60 | } |
| 61 | defer pq.Drop() |
| 62 | pq.Close() |
| 63 | |
| 64 | if _, err = OpenStack(file); err != ErrIncompatibleType { |
| 65 | t.Error("Expected stack to return ErrIncompatibleTypes when opening goquePriorityQueue") |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | func TestStackPush(t *testing.T) { |
| 70 | file := fmt.Sprintf("test_db_%d", time.Now().UnixNano()) |
nothing calls this directly
no test coverage detected