Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions internal/loggers/vin_logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,19 @@ func Test_extractVIN(t *testing.T) {
7e82220202020202020`,
wantErr: true,
},
{
name: "Mateusz and Steve example VIN UDS, vin_18DB33F1_UDS",
hexValue: `|-
18DAF111101862F19011354A
18DAF1112136524534483734
18DAF11122424C3035363039
18DAF1112337000000555555
`,
wantVin: "5J6RE4H74BL056097",
// need to use the request pid to help decode to find start position, 354A is start in frame 1, 37 is last byte we want in frame 4, the rest is padding.
wantVinStartPos: 10,
wantErr: false,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand Down