Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollo3zehn committed Aug 26, 2024
1 parent fd1c537 commit 39858b7
Show file tree
Hide file tree
Showing 17 changed files with 57 additions and 57 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ await dataSource.ReadAsync(
.Select(x => x with
{
FileSource = default!,
FilePath = x.FilePath.Split("Nexus.Sources.StructuredFile.Tests")[1]
FilePath = x.FilePath.Split("/DATABASES/")[1]
}
)
.OrderBy(x => x.FilePath);
Expand Down
6 changes: 3 additions & 3 deletions tests/Nexus.Sources.StructuredFile.Tests/expected/A.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"BufferOffset": 43200,
"FilePath": "/debug/DATABASES/A/DATA/calibrated/2019-12/2019-12-31/2019-12-31_12-00-00.dat",
"FilePath": "A/DATA/calibrated/2019-12/2019-12-31/2019-12-31_12-00-00.dat",
"FileSource": null,
"RegularFileBegin": "2019-12-31T12:00:00Z",
"FileOffset": 0,
Expand All @@ -10,7 +10,7 @@
},
{
"BufferOffset": 172800,
"FilePath": "/debug/DATABASES/A/DATA/calibrated/2020-01/2020-01-02/2020-01-02_00-00-00.dat",
"FilePath": "A/DATA/calibrated/2020-01/2020-01-02/2020-01-02_00-00-00.dat",
"FileSource": null,
"RegularFileBegin": "2020-01-02T00:00:00Z",
"FileOffset": 0,
Expand All @@ -19,7 +19,7 @@
},
{
"BufferOffset": 173400,
"FilePath": "/debug/DATABASES/A/DATA/calibrated/2020-01/2020-01-02/2020-01-02_00-10-00.dat",
"FilePath": "A/DATA/calibrated/2020-01/2020-01-02/2020-01-02_00-10-00.dat",
"FileSource": null,
"RegularFileBegin": "2020-01-02T00:10:00Z",
"FileOffset": 0,
Expand Down
6 changes: 3 additions & 3 deletions tests/Nexus.Sources.StructuredFile.Tests/expected/B.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"BufferOffset": 43200,
"FilePath": "/debug/DATABASES/B/DATA/2019-12/calibrated/2019-12-31/2019-12-31_12-00-00.dat",
"FilePath": "B/DATA/2019-12/calibrated/2019-12-31/2019-12-31_12-00-00.dat",
"FileSource": null,
"RegularFileBegin": "2019-12-31T12:00:00Z",
"FileOffset": 0,
Expand All @@ -10,7 +10,7 @@
},
{
"BufferOffset": 172800,
"FilePath": "/debug/DATABASES/B/DATA/2020-01/calibrated/2020-01-02/2020-01-02_00-00-00.dat",
"FilePath": "B/DATA/2020-01/calibrated/2020-01-02/2020-01-02_00-00-00.dat",
"FileSource": null,
"RegularFileBegin": "2020-01-02T00:00:00Z",
"FileOffset": 0,
Expand All @@ -19,7 +19,7 @@
},
{
"BufferOffset": 173400,
"FilePath": "/debug/DATABASES/B/DATA/2020-01/calibrated/2020-01-02/2020-01-02_00-10-00.dat",
"FilePath": "B/DATA/2020-01/calibrated/2020-01-02/2020-01-02_00-10-00.dat",
"FileSource": null,
"RegularFileBegin": "2020-01-02T00:10:00Z",
"FileOffset": 0,
Expand Down
6 changes: 3 additions & 3 deletions tests/Nexus.Sources.StructuredFile.Tests/expected/C.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"BufferOffset": 43200,
"FilePath": "/debug/DATABASES/C/DATA/2019-12-31/__0_2019-12-31_12-00-00_000000.dat",
"FilePath": "C/DATA/2019-12-31/__0_2019-12-31_12-00-00_000000.dat",
"FileSource": null,
"RegularFileBegin": "2019-12-31T12:00:00Z",
"FileOffset": 0,
Expand All @@ -10,7 +10,7 @@
},
{
"BufferOffset": 172800,
"FilePath": "/debug/DATABASES/C/DATA/2020-01-02/__0_2020-01-02_00-00-00_000000.dat",
"FilePath": "C/DATA/2020-01-02/__0_2020-01-02_00-00-00_000000.dat",
"FileSource": null,
"RegularFileBegin": "2020-01-02T00:00:00Z",
"FileOffset": 0,
Expand All @@ -19,7 +19,7 @@
},
{
"BufferOffset": 173400,
"FilePath": "/debug/DATABASES/C/DATA/2020-01-02/__0_2020-01-02_00-10-00_000000.dat",
"FilePath": "C/DATA/2020-01-02/__0_2020-01-02_00-10-00_000000.dat",
"FileSource": null,
"RegularFileBegin": "2020-01-02T00:10:00Z",
"FileOffset": 0,
Expand Down
6 changes: 3 additions & 3 deletions tests/Nexus.Sources.StructuredFile.Tests/expected/D.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"BufferOffset": 36000,
"FilePath": "/debug/DATABASES/D/DATA/position_A/__0_2019-12-31_12-00-00_000000.dat",
"FilePath": "D/DATA/position_A/__0_2019-12-31_12-00-00_000000.dat",
"FileSource": null,
"RegularFileBegin": "2019-12-31T10:00:00Z",
"FileOffset": 0,
Expand All @@ -10,7 +10,7 @@
},
{
"BufferOffset": 165600,
"FilePath": "/debug/DATABASES/D/DATA/position_A/__0_2020-01-02_00-00-00_000000.dat",
"FilePath": "D/DATA/position_A/__0_2020-01-02_00-00-00_000000.dat",
"FileSource": null,
"RegularFileBegin": "2020-01-01T22:00:00Z",
"FileOffset": 0,
Expand All @@ -19,7 +19,7 @@
},
{
"BufferOffset": 166200,
"FilePath": "/debug/DATABASES/D/DATA/position_A/__0_2020-01-02_00-10-00_000000.dat",
"FilePath": "D/DATA/position_A/__0_2020-01-02_00-10-00_000000.dat",
"FileSource": null,
"RegularFileBegin": "2020-01-01T22:10:00Z",
"FileOffset": 0,
Expand Down
4 changes: 2 additions & 2 deletions tests/Nexus.Sources.StructuredFile.Tests/expected/E.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"BufferOffset": 86400,
"FilePath": "/debug/DATABASES/E/DATA/2020-01/prefix_average_data_2020-01-01_00-00-00.dat",
"FilePath": "E/DATA/2020-01/prefix_average_data_2020-01-01_00-00-00.dat",
"FileSource": null,
"RegularFileBegin": "2020-01-01T00:00:00Z",
"FileOffset": 0,
Expand All @@ -10,7 +10,7 @@
},
{
"BufferOffset": 172800,
"FilePath": "/debug/DATABASES/E/DATA/2020-01/prefix_average_data_2020-01-02_00-00-00.dat",
"FilePath": "E/DATA/2020-01/prefix_average_data_2020-01-02_00-00-00.dat",
"FileSource": null,
"RegularFileBegin": "2020-01-02T00:00:00Z",
"FileOffset": 0,
Expand Down
6 changes: 3 additions & 3 deletions tests/Nexus.Sources.StructuredFile.Tests/expected/F.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"BufferOffset": 43200,
"FilePath": "/debug/DATABASES/F/DATA/2019-12/20191231_12_x_0000.dat",
"FilePath": "F/DATA/2019-12/20191231_12_x_0000.dat",
"FileSource": null,
"RegularFileBegin": "2019-12-31T12:00:00Z",
"FileOffset": 0,
Expand All @@ -10,7 +10,7 @@
},
{
"BufferOffset": 172800,
"FilePath": "/debug/DATABASES/F/DATA/2020-01/20200102_00_x_0001.dat",
"FilePath": "F/DATA/2020-01/20200102_00_x_0001.dat",
"FileSource": null,
"RegularFileBegin": "2020-01-02T00:00:00Z",
"FileOffset": 0,
Expand All @@ -19,7 +19,7 @@
},
{
"BufferOffset": 176400,
"FilePath": "/debug/DATABASES/F/DATA/2020-01/20200102_01_x_0002.dat",
"FilePath": "F/DATA/2020-01/20200102_01_x_0002.dat",
"FileSource": null,
"RegularFileBegin": "2020-01-02T01:00:00Z",
"FileOffset": 0,
Expand Down
8 changes: 4 additions & 4 deletions tests/Nexus.Sources.StructuredFile.Tests/expected/G.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"BufferOffset": 88822,
"FilePath": "/debug/DATABASES/G/DATA/prefix_01-01-2020/00-40-22.dat",
"FilePath": "G/DATA/prefix_01-01-2020/00-40-22.dat",
"FileSource": null,
"RegularFileBegin": "2020-01-01T00:40:22Z",
"FileOffset": 0,
Expand All @@ -10,7 +10,7 @@
},
{
"BufferOffset": 92362,
"FilePath": "/debug/DATABASES/G/DATA/prefix_01-01-2020/01-39-22.dat",
"FilePath": "G/DATA/prefix_01-01-2020/01-39-22.dat",
"FileSource": null,
"RegularFileBegin": "2020-01-01T01:39:22Z",
"FileOffset": 0,
Expand All @@ -19,7 +19,7 @@
},
{
"BufferOffset": 2422,
"FilePath": "/debug/DATABASES/G/DATA/prefix_31-12-2019/00-40-22.dat",
"FilePath": "G/DATA/prefix_31-12-2019/00-40-22.dat",
"FileSource": null,
"RegularFileBegin": "2019-12-31T00:40:22Z",
"FileOffset": 0,
Expand All @@ -28,7 +28,7 @@
},
{
"BufferOffset": 5962,
"FilePath": "/debug/DATABASES/G/DATA/prefix_31-12-2019/01-39-22.dat",
"FilePath": "G/DATA/prefix_31-12-2019/01-39-22.dat",
"FileSource": null,
"RegularFileBegin": "2019-12-31T01:39:22Z",
"FileOffset": 0,
Expand Down
6 changes: 3 additions & 3 deletions tests/Nexus.Sources.StructuredFile.Tests/expected/H.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"BufferOffset": 43200,
"FilePath": "/debug/DATABASES/H/2019-12-31_12-00-00.dat",
"FilePath": "H/2019-12-31_12-00-00.dat",
"FileSource": null,
"RegularFileBegin": "2019-12-31T12:00:00Z",
"FileOffset": 0,
Expand All @@ -10,7 +10,7 @@
},
{
"BufferOffset": 172800,
"FilePath": "/debug/DATABASES/H/2020-01-02_00-00-00.dat",
"FilePath": "H/2020-01-02_00-00-00.dat",
"FileSource": null,
"RegularFileBegin": "2020-01-02T00:00:00Z",
"FileOffset": 0,
Expand All @@ -19,7 +19,7 @@
},
{
"BufferOffset": 173400,
"FilePath": "/debug/DATABASES/H/2020-01-02_00-10-00.dat",
"FilePath": "H/2020-01-02_00-10-00.dat",
"FileSource": null,
"RegularFileBegin": "2020-01-02T00:10:00Z",
"FileOffset": 0,
Expand Down
4 changes: 2 additions & 2 deletions tests/Nexus.Sources.StructuredFile.Tests/expected/I.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"BufferOffset": 86100,
"FilePath": "/debug/DATABASES/I/DATA/2019-12-31_23-55-00/data.dat",
"FilePath": "I/DATA/2019-12-31_23-55-00/data.dat",
"FileSource": null,
"RegularFileBegin": "2019-12-31T23:55:00Z",
"FileOffset": 0,
Expand All @@ -10,7 +10,7 @@
},
{
"BufferOffset": 87000,
"FilePath": "/debug/DATABASES/I/DATA/2020-01-01_00-10-00/data.dat",
"FilePath": "I/DATA/2020-01-01_00-10-00/data.dat",
"FileSource": null,
"RegularFileBegin": "2020-01-01T00:10:00Z",
"FileOffset": 0,
Expand Down
6 changes: 3 additions & 3 deletions tests/Nexus.Sources.StructuredFile.Tests/expected/J.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"BufferOffset": 0,
"FilePath": "/debug/DATABASES/J/DATA1/2020_01_01.dat",
"FilePath": "J/DATA1/2020_01_01.dat",
"FileSource": null,
"RegularFileBegin": "2020-01-01T00:00:00Z",
"FileOffset": 0,
Expand All @@ -10,7 +10,7 @@
},
{
"BufferOffset": 86400,
"FilePath": "/debug/DATABASES/J/DATA1/2020-01-02.dat",
"FilePath": "J/DATA1/2020-01-02.dat",
"FileSource": null,
"RegularFileBegin": "2020-01-02T00:00:00Z",
"FileOffset": 0,
Expand All @@ -19,7 +19,7 @@
},
{
"BufferOffset": 259200,
"FilePath": "/debug/DATABASES/J/DATA2/2020-01-04.dat",
"FilePath": "J/DATA2/2020-01-04.dat",
"FileSource": null,
"RegularFileBegin": "2020-01-04T00:00:00Z",
"FileOffset": 0,
Expand Down
2 changes: 1 addition & 1 deletion tests/Nexus.Sources.StructuredFile.Tests/expected/K.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"BufferOffset": 0,
"FilePath": "/debug/DATABASES/K/DATA/2020-01-01T00-00-00Z.dat",
"FilePath": "K/DATA/2020-01-01T00-00-00Z.dat",
"FileSource": null,
"RegularFileBegin": "2020-01-01T00:00:00Z",
"FileOffset": 0,
Expand Down
8 changes: 4 additions & 4 deletions tests/Nexus.Sources.StructuredFile.Tests/expected/L.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"BufferOffset": 0,
"FilePath": "/debug/DATABASES/L/DATA/2020-01-01T00-00-00Z_V1.dat",
"FilePath": "L/DATA/2020-01-01T00-00-00Z_V1.dat",
"FileSource": null,
"RegularFileBegin": "2020-01-01T00:00:00Z",
"FileOffset": 0,
Expand All @@ -10,7 +10,7 @@
},
{
"BufferOffset": 86400,
"FilePath": "/debug/DATABASES/L/DATA/2020-01-02T00-00-00Z_V1.dat",
"FilePath": "L/DATA/2020-01-02T00-00-00Z_V1.dat",
"FileSource": null,
"RegularFileBegin": "2020-01-02T00:00:00Z",
"FileOffset": 0,
Expand All @@ -19,7 +19,7 @@
},
{
"BufferOffset": 86400,
"FilePath": "/debug/DATABASES/L/DATA/2020-01-02T00-00-00Z_V2.dat",
"FilePath": "L/DATA/2020-01-02T00-00-00Z_V2.dat",
"FileSource": null,
"RegularFileBegin": "2020-01-02T00:00:00Z",
"FileOffset": 0,
Expand All @@ -28,7 +28,7 @@
},
{
"BufferOffset": 172800,
"FilePath": "/debug/DATABASES/L/DATA/2020-01-03T00-00-00Z_V2.dat",
"FilePath": "L/DATA/2020-01-03T00-00-00Z_V2.dat",
"FileSource": null,
"RegularFileBegin": "2020-01-03T00:00:00Z",
"FileOffset": 0,
Expand Down
12 changes: 6 additions & 6 deletions tests/Nexus.Sources.StructuredFile.Tests/expected/M.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"BufferOffset": 5723,
"FilePath": "/debug/DATABASES/M/DATA/2020-01-01T01-35-23Z.dat",
"FilePath": "M/DATA/2020-01-01T01-35-23Z.dat",
"FileSource": null,
"RegularFileBegin": "2020-01-01T01:00:00Z",
"FileOffset": 0,
Expand All @@ -10,7 +10,7 @@
},
{
"BufferOffset": 6421,
"FilePath": "/debug/DATABASES/M/DATA/2020-01-01T01-47-01Z.dat",
"FilePath": "M/DATA/2020-01-01T01-47-01Z.dat",
"FileSource": null,
"RegularFileBegin": "2020-01-01T01:00:00Z",
"FileOffset": 0,
Expand All @@ -19,7 +19,7 @@
},
{
"BufferOffset": 8810,
"FilePath": "/debug/DATABASES/M/DATA/2020-01-01T02-26-50Z.dat",
"FilePath": "M/DATA/2020-01-01T02-26-50Z.dat",
"FileSource": null,
"RegularFileBegin": "2020-01-01T02:00:00Z",
"FileOffset": 0,
Expand All @@ -28,7 +28,7 @@
},
{
"BufferOffset": 10800,
"FilePath": "/debug/DATABASES/M/DATA/2020-01-01T03-00-00Z.dat",
"FilePath": "M/DATA/2020-01-01T03-00-00Z.dat",
"FileSource": null,
"RegularFileBegin": "2020-01-01T03:00:00Z",
"FileOffset": 0,
Expand All @@ -37,7 +37,7 @@
},
{
"BufferOffset": 14400,
"FilePath": "/debug/DATABASES/M/DATA/2020-01-01T04-00-00Z.dat",
"FilePath": "M/DATA/2020-01-01T04-00-00Z.dat",
"FileSource": null,
"RegularFileBegin": "2020-01-01T04:00:00Z",
"FileOffset": 0,
Expand All @@ -46,7 +46,7 @@
},
{
"BufferOffset": 15314,
"FilePath": "/debug/DATABASES/M/DATA/2020-01-01T04-15-14Z.dat",
"FilePath": "M/DATA/2020-01-01T04-15-14Z.dat",
"FileSource": null,
"RegularFileBegin": "2020-01-01T04:00:00Z",
"FileOffset": 0,
Expand Down
Loading

0 comments on commit 39858b7

Please sign in to comment.