Generate native core discovery from typed dispatch contracts
This commit is contained in:
@@ -61,6 +61,15 @@ pub(crate) fn problems(
|
||||
{
|
||||
continue;
|
||||
}
|
||||
// Core is a native provider, not an installed plugin or cached WASM.
|
||||
if provider == "core" {
|
||||
for problem in
|
||||
sausage_interface::compat::check(expected, crate::core::discover())
|
||||
{
|
||||
failures.push(json!({"consumer":consumer,"provider":provider,"status":"broken","method":problem.method,"message":problem.message,"counterexample":problem.counterexample,"display":problem.to_string()}));
|
||||
}
|
||||
continue;
|
||||
}
|
||||
let Some(actual) = plugins.get(provider) else {
|
||||
failures.push(json!({"consumer":consumer,"provider":provider,"status":"missing","message":"the provider does not exist"}));
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user