Skip to content

Commit 212bba8

Browse files
committed
exported GetObjectByIdent
1 parent c8debf1 commit 212bba8

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

a2l/record_layout.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,6 @@ forLooP:
963963
} else {
964964
break forLooP
965965
}
966-
967966
}
968967
return absPos, err
969968
}

calib_data_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func TestReadCalibration(t *testing.T) {
4848
log.Warn().Msg("time for parsing test files: " + fmt.Sprint(elapsed.Milliseconds()))
4949
startTime := time.Now()
5050
//find object in a2l struct
51-
obj := cd.getObjectByIdent("ASAM.M.MATRIX_DIM_8_4_2.UBYTE.IDENTICAL")
51+
obj := cd.GetObjectByIdent("ASAM.M.MATRIX_DIM_8_4_2.UBYTE.IDENTICAL")
5252
if len(obj) == 0 {
5353
t.Fatalf("unable to find known identifier")
5454
}

record_manager.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ func (cd *CalibrationData) getRecordLayout(c *a2l.Characteristic) (*a2l.RecordLa
7575
return &rl, nil
7676
}
7777

78-
// getObjectByIdent returns an object with a given identifier that is defined within the a2l
78+
// GetObjectByIdent returns an object with a given identifier that is defined within the a2l
7979
// not all datastructures are checked. Only the most relevant ones
80-
func (cd *CalibrationData) getObjectByIdent(ident string) []interface{} {
80+
func (cd *CalibrationData) GetObjectByIdent(ident string) []interface{} {
8181
var calibrationObjects []interface{}
8282
var buf interface{}
8383
var exists bool

0 commit comments

Comments
 (0)