Skip to content
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

add unit tests fms server #40

Conversation

eriksven
Copy link
Contributor

No description provided.

@eriksven eriksven changed the title Feature/add unit tests fms server add unit tests fms server Jan 18, 2024
#[test]
fn no_parameters_returns_400() {
let parameters : HashMap<String, String> = vec![].into_iter().collect();
match parse_query_parameters(&parameters) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

using only assertions seems easier to read to me

let result = parse_query_parameters(&parameters);
assert!(result.is_err());
assert_eq!(result.unwrap_err(), StatusCode::BAD_REQUEST);

@eriksven eriksven force-pushed the feature/add-unit-tests-fms-server branch from 82c0501 to 1a0c271 Compare January 19, 2024 17:17
Copy link
Contributor

@sophokles73 sophokles73 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sophokles73 sophokles73 merged commit caf0dbf into eclipse-sdv-blueprints:main Jan 26, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants