clbarnes / arbor-rs

MIT License
0 stars 1 forks source link

Integration test strategy #16

Open clbarnes opened 5 years ago

clbarnes commented 5 years ago

SynapseClustering::find_axon's reference JSON has a bunch of stuff as strings, deserialising it is tricky.

clbarnes commented 5 years ago

In cases where a struct is being deserialised directly, this can be placed above individual fields:

#[serde(deserialize_with = "from_str")]
clbarnes commented 5 years ago

But NodeType doesn't necessarily implement FromStr, and adding it everywhere in the library would be a pain given it's only used in integration tests.