(path string)
| 68 | } |
| 69 | |
| 70 | func ReadFileToBytes(path string) ([]byte, error) { |
| 71 | f, err := os.Open(path) |
| 72 | if err != nil { |
| 73 | return nil, fmt.Errorf("failed to open file: %w", err) |
| 74 | } |
| 75 | defer f.Close() |
| 76 | |
| 77 | return io.ReadAll(f) |
| 78 | } |
| 79 | |
| 80 | // checks if two QRecords are identical |
| 81 | func CheckQRecordEquality(t *testing.T, q []types.QValue, other []types.QValue) bool { |