Skip to content

Commit

Permalink
test: add segmented capability sample
Browse files Browse the repository at this point in the history
  • Loading branch information
handymenny committed Jul 27, 2024
1 parent 7f5679b commit afb0922
Show file tree
Hide file tree
Showing 10 changed files with 171,069 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,21 @@ internal class CliCsvOutputTest {
)
}

@Test
fun testUeCapHexSegmented() {
test(
"-i",
"$path/input/ueCapHexSegmented.hex",
"--sub-types",
"LTE",
"-t",
"H",
"-c",
"-",
oracleFilename = "ueCapHexSegmented.csv",
)
}

@Test
fun testQcatMrdc() {
test(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,22 @@ internal class CliJsonOutputTest {
)
}

@Test
fun testUeCapHexSegmented() {
test(
"-i",
"$path/input/ueCapHexSegmented.hex",
"--sub-types",
"LTE",
"-t",
"H",
"-j",
"-",
"--json-pretty-print",
oracleFilename = "ueCapHexSegmented.json",
)
}

@Test
fun testQcatMrdc() {
test(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,22 @@ internal class CliUeLogOutputTest {
)
}

@Test
fun testUeCapHexSegmented() {
test(
"-i",
"$path/input/ueCapHexSegmented.hex",
"--sub-types",
"LTE",
"-t",
"H",
"-l",
"-",
"--json-pretty-print",
oracleFilename = "ueCapHexSegmented.json",
)
}

@Test
fun testQcatMrdc() {
test(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,22 @@ internal class ServerModeMultiPartParseTest {
)
}

@Test
fun ueCapHexSegmentedJsonOutput() {
javalinJsonTest(
request =
buildJsonArray {
addJsonObject {
put("type", "H")
putJsonArray("inputIndexes") { add(0) }
putJsonArray("subTypes") { add("LTE") }
}
},
files = listOf("$inputPath/ueCapHexSegmented.hex"),
oraclePath = "$oraclePath/ueCapHexSegmented.json",
)
}

@Test
fun qcatNrdc() {
javalinJsonTest(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,18 @@ internal class ServerModeParseTest {
)
}

@Test
fun ueCapHexSegmentedJsonOutput() {
javalinJsonTest(
request =
buildJsonObject {
put("type", "H")
put("input", fileToBase64("$path/input/ueCapHexSegmented.hex"))
},
oraclePath = "$path/oracleJson/ueCapHexSegmented.json"
)
}

@Test
fun qcatMrdcJsonOutput() {
javalinJsonTest(
Expand Down
951 changes: 951 additions & 0 deletions src/test/resources/cli/input/ueCapHexSegmented.hex

Large diffs are not rendered by default.

1,170 changes: 1,170 additions & 0 deletions src/test/resources/cli/oracleCsv/ueCapHexSegmented.csv

Large diffs are not rendered by default.

Loading

0 comments on commit afb0922

Please sign in to comment.