Wchwch777/moonverity/core does not have a README file
test {
let map = { 3: "three", 8: "eight", 1: "one" }
@test.assert_eq(map.get(2), None)
@test.assert_eq(map.get(3), Some("three"))
map.set(3, "updated")
@test.assert_eq(map.get(3), Some("updated"))
}pub(all) struct BenchmarkCaseResult {
name : String
expected_passed : Bool
actual_passed : Bool
consistent : Bool
row_count : Int
failure_count : Int
warning_count : Int
quality : QualityScore
} derive(Eq, Debug)pub(all) struct BenchmarkSuite {
passed : Bool
case_count : Int
cases : Array[BenchmarkCaseResult]
failed_cases : Array[String]
} derive(Eq, Debug)pub(all) enum Rule {
Unique(fields~ : Array[String], severity~ : Severity, message~ : String)
Completeness(field~ : String, min_percent~ : Int, severity~ : Severity, message~ : String)
Enum(field~ : String, allowed_values~ : Array[String], severity~ : Severity, message~ : String)
IntRange(field~ : String, min~ : Int, max~ : Int, severity~ : Severity, message~ : String)
CompareInts(left~ : String, op~ : ComparisonOp, right~ : String, severity~ : Severity, message~ : String)
PatternMatch(field~ : String, pattern~ : String, severity~ : Severity, message~ : String)
StringLength(field~ : String, min~ : Int, max~ : Int, severity~ : Severity, message~ : String)
DistinctCount(field~ : String, min~ : Int, max~ : Int, severity~ : Severity, message~ : String)
RequiredIf(condition_field~ : String, condition_value~ : String, field~ : String, severity~ : Severity, message~ : String)
RowCount(min~ : Int?, max~ : Int?, severity~ : Severity, message~ : String)
} derive(Eq, Debug)pub(all) struct ValidationReport {
dataset_name : String
row_count : Int
passed : Bool
failure_count : Int
warning_count : Int
rule_results : Array[RuleResult]
} derive(Eq, Debug)fn validate_rows_with_schema(contract : Contract, rows : Array[Map[String, String]]) -> ValidationReportMoonBit-native data contract and quality gate toolkit for CSV and JSONL datasets.
Dependencies