-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move additional tests to golden files (#79)
Move additional tests to golden files out of the fixture. This is to help support additional support like re-encoding and expanding to request decoding.
- Loading branch information
1 parent
19bbccc
commit 13bb8b4
Showing
8 changed files
with
57 additions
and
95 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
data: | ||
- "0106" | ||
- "000203" | ||
- "848201" | ||
decoded_data: | ||
- type: AcknowledgeResponse | ||
commandEcho: 6 | ||
- type: NotAcknowledgeResponse | ||
commandEcho: 2 | ||
NAKCode: 3 | ||
- type: CommandSupportResponse | ||
commandEcho: 0x82 | ||
support: 1 |
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,6 @@ | ||
data: | ||
- 830F0010 | ||
decoded_data: | ||
- type: AvailableStationsResponse | ||
pageNumber: 15 | ||
setStations: 16 |
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,13 @@ | ||
data: | ||
- "900C3623" | ||
- "9212B7E2" | ||
decoded_data: | ||
- type: CurrentTimeResponse | ||
hour: 12 | ||
minute: 54 | ||
second: 35 | ||
- type: CurrentDateResponse | ||
year: 2018 | ||
month: 11 | ||
day: 18 | ||
|
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,5 @@ | ||
data: | ||
- "C801" | ||
decoded_data: | ||
- type: CurrentIrrigationStateResponse | ||
irrigationState: 1 |
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,10 @@ | ||
data: | ||
- "820006090C" | ||
- "850000000000008963" | ||
decoded_data: | ||
- type: ModelAndVersionResponse | ||
modelID: 6 | ||
protocolRevisionMajor: 9 | ||
protocolRevisionMinor: 12 | ||
- type: SerialNumberResponse | ||
serialNumber: 0x8963 |
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,5 @@ | ||
data: | ||
- "B60003" | ||
decoded_data: | ||
- type: RainDelaySettingResponse | ||
delaySetting: 3 |
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,5 @@ | ||
data: | ||
- "BE01" | ||
decoded_data: | ||
- type: CurrentRainSensorStateResponse | ||
sensorState: 1 |