-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28098 from loganharbour/28097_int_webserver
Add int and vector<int> support to WebServerControl
- Loading branch information
Showing
7 changed files
with
147 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
test/tests/controls/web_server_control/gold/control_reporter_int.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"reporters": { | ||
"test": { | ||
"type": "WebServerControlTestReporter", | ||
"values": { | ||
"int_value": { | ||
"type": "int" | ||
} | ||
} | ||
} | ||
}, | ||
"time_steps": [ | ||
{ | ||
"test": { | ||
"int_value": -1234 | ||
}, | ||
"time": 0.0, | ||
"time_step": 0 | ||
}, | ||
{ | ||
"test": { | ||
"int_value": -5000 | ||
}, | ||
"time": 1.0, | ||
"time_step": 1 | ||
}, | ||
{ | ||
"test": { | ||
"int_value": 1 | ||
}, | ||
"time": 2.0, | ||
"time_step": 2 | ||
} | ||
] | ||
} |
48 changes: 48 additions & 0 deletions
48
test/tests/controls/web_server_control/gold/control_reporter_vec_int.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"reporters": { | ||
"test": { | ||
"type": "WebServerControlTestReporter", | ||
"values": { | ||
"vec_int_value": { | ||
"type": "std::vector<int>" | ||
} | ||
} | ||
} | ||
}, | ||
"time_steps": [ | ||
{ | ||
"test": { | ||
"vec_int_value": [ | ||
0, | ||
-100, | ||
12345 | ||
] | ||
}, | ||
"time": 0.0, | ||
"time_step": 0 | ||
}, | ||
{ | ||
"test": { | ||
"vec_int_value": [ | ||
-1, | ||
-2, | ||
-3, | ||
4, | ||
5 | ||
] | ||
}, | ||
"time": 1.0, | ||
"time_step": 1 | ||
}, | ||
{ | ||
"test": { | ||
"vec_int_value": [ | ||
888, | ||
-1000 | ||
] | ||
}, | ||
"time": 2.0, | ||
"time_step": 2 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters