Skip to content

Commit

Permalink
Make casing consitent with other operations
Browse files Browse the repository at this point in the history
  • Loading branch information
c65722 committed Sep 15, 2024
1 parent 24be4bd commit e5be1de
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/core/config/Categories.json
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
"Parse IPv6 address",
"Parse IPv4 header",
"Parse TCP",
"Strip TCP Header",
"Strip TCP header",
"Parse UDP",
"Parse SSH Host Key",
"Parse URI",
Expand Down
4 changes: 2 additions & 2 deletions src/core/operations/StripTCPHeader.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import OperationError from "../errors/OperationError.mjs";
import Stream from "../lib/Stream.mjs";

/**
* Strip TCP Header operation
* Strip TCP header operation
*/
class StripTCPHeader extends Operation {

Expand All @@ -19,7 +19,7 @@ class StripTCPHeader extends Operation {
constructor() {
super();

this.name = "Strip TCP Header";
this.name = "Strip TCP header";
this.module = "Default";
this.description = "Strips the TCP header from a TCP segment, outputting the payload.";
this.infoURL = "https://wikipedia.org/wiki/Transmission_Control_Protocol";
Expand Down
26 changes: 13 additions & 13 deletions tests/operations/tests/StripTCPHeader.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Strip TCP Header tests.
* Strip TCP header tests.
*
* @author c65722 []
* @copyright Crown Copyright 2024
Expand All @@ -10,7 +10,7 @@ import TestRegister from "../../lib/TestRegister.mjs";

TestRegister.addTests([
{
name: "Strip TCP Header: No options, No payload",
name: "Strip TCP header: No options, No payload",
input: "7f900050000fa4b2000cb2a45010bff100000000",
expectedOutput: "",
recipeConfig: [
Expand All @@ -19,7 +19,7 @@ TestRegister.addTests([
args: ["None"]
},
{
op: "Strip TCP Header",
op: "Strip TCP header",
args: [],
},
{
Expand All @@ -29,7 +29,7 @@ TestRegister.addTests([
]
},
{
name: "Strip TCP Header: No options, Payload",
name: "Strip TCP header: No options, Payload",
input: "7f900050000fa4b2000cb2a45010bff100000000ffffffffffffffff",
expectedOutput: "ffffffffffffffff",
recipeConfig: [
Expand All @@ -38,7 +38,7 @@ TestRegister.addTests([
args: ["None"]
},
{
op: "Strip TCP Header",
op: "Strip TCP header",
args: [],
},
{
Expand All @@ -48,7 +48,7 @@ TestRegister.addTests([
]
},
{
name: "Strip TCP Header: Options, No payload",
name: "Strip TCP header: Options, No payload",
input: "7f900050000fa4b2000cb2a47010bff100000000020405b404020000",
expectedOutput: "",
recipeConfig: [
Expand All @@ -57,7 +57,7 @@ TestRegister.addTests([
args: ["None"]
},
{
op: "Strip TCP Header",
op: "Strip TCP header",
args: [],
},
{
Expand All @@ -67,7 +67,7 @@ TestRegister.addTests([
]
},
{
name: "Strip TCP Header: Options, Payload",
name: "Strip TCP header: Options, Payload",
input: "7f900050000fa4b2000cb2a47010bff100000000020405b404020000ffffffffffffffff",
expectedOutput: "ffffffffffffffff",
recipeConfig: [
Expand All @@ -76,7 +76,7 @@ TestRegister.addTests([
args: ["None"]
},
{
op: "Strip TCP Header",
op: "Strip TCP header",
args: [],
},
{
Expand All @@ -86,7 +86,7 @@ TestRegister.addTests([
]
},
{
name: "Strip TCP Header: Input length less than minimum header length",
name: "Strip TCP header: Input length less than minimum header length",
input: "7f900050000fa4b2000cb2a45010bff1000000",
expectedOutput: "Need at least 20 bytes for a TCP Header",
recipeConfig: [
Expand All @@ -95,7 +95,7 @@ TestRegister.addTests([
args: ["None"]
},
{
op: "Strip TCP Header",
op: "Strip TCP header",
args: [],
},
{
Expand All @@ -105,7 +105,7 @@ TestRegister.addTests([
]
},
{
name: "Strip TCP Header: Input length less than data offset",
name: "Strip TCP header: Input length less than data offset",
input: "7f900050000fa4b2000cb2a47010bff100000000",
expectedOutput: "Input length is less than data offset",
recipeConfig: [
Expand All @@ -114,7 +114,7 @@ TestRegister.addTests([
args: ["None"]
},
{
op: "Strip TCP Header",
op: "Strip TCP header",
args: [],
},
{
Expand Down

0 comments on commit e5be1de

Please sign in to comment.