ocpi-tariffs 0.43.0

OCPI tariff calculations
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::path::Path;

use crate::{lint::tariff, test, Version};
#[test_each::file(
    glob = "ocpi-tariffs/test_data/v211/lint/*/tariff*.json",
    name(segments = 2)
)]
fn should_lint_tariff(tariff_json: &str, path: &Path) {
    test::setup();
    tariff::test::lint_tariff(tariff_json, path, Version::V211);
}