-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] read gtfs route as line #724
Conversation
177243b
to
39dc07c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great! ❤️
I added 2 very minor comments feel free to skip them
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few missing things:
- Please bump the version (minor) of
transit_model
- The specification needs to be updated
https://github.com/CanalTP/transit_model/blob/master/documentation/gtfs_to_ntfs_specs.md
src/gtfs/mod.rs
Outdated
pub read_as_line: bool, | ||
} | ||
|
||
impl Default for Configuration { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe you can just derive the Default
implementation with
#[derive(Default)]
since all you have are the default values (false
is the default for bool
if I remember correctly).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done in f33d555
src/gtfs/read.rs
Outdated
@@ -3297,4 +3307,103 @@ mod tests { | |||
); | |||
}); | |||
} | |||
|
|||
#[test] | |||
fn read_gtfs_routes_as_line() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not see any generated-UUID
in this test. Do we test this?
5a2f031
to
f33d555
Compare
Codecov Report
@@ Coverage Diff @@
## master #724 +/- ##
=============================
=============================
Continue to review full report at Codecov.
|
650baea
to
d606729
Compare
ref: ND-1090