Added test for minimal example. Omit optional values when not set. Added messages for route info, production drop and route end.
This commit is contained in:
parent
9525e7b97f
commit
df964e0ecf
9 changed files with 283 additions and 8 deletions
|
|
@ -11,6 +11,9 @@ type RouteListEntry struct {
|
|||
}
|
||||
|
||||
func (r *RouteListEntry) CopiesInRoute() string {
|
||||
if r.copiesInRoute == 0 {
|
||||
return ""
|
||||
}
|
||||
return fmt.Sprintf("+23%06d", r.copiesInRoute)
|
||||
}
|
||||
|
||||
|
|
@ -19,6 +22,9 @@ func (r *RouteListEntry) SetCopiesInRoute(copiesInRoute int) {
|
|||
}
|
||||
|
||||
func (r *RouteListEntry) RampNumber() string {
|
||||
if r.rampNumber == 0 {
|
||||
return ""
|
||||
}
|
||||
return fmt.Sprintf("+25%02d", r.rampNumber)
|
||||
}
|
||||
|
||||
|
|
@ -27,6 +33,9 @@ func (r *RouteListEntry) SetRampNumber(rampNumber int) {
|
|||
}
|
||||
|
||||
func (r *RouteListEntry) RouteCode() string {
|
||||
if r.routeCode == 0 {
|
||||
return ""
|
||||
}
|
||||
return fmt.Sprintf("+79%05d", r.routeCode)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue