MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / eq

Method eq

tests/wasi.rs:286–290  ·  view source on GitHub ↗
(&self, other: &Output)

Source from the content-addressed store, hash-verified

284
285impl PartialEq<Output> for Spec {
286 fn eq(&self, other: &Output) -> bool {
287 self.exit_code.unwrap_or(0) == other.status.code().unwrap()
288 && matches_or_missing(&self.stdout, &other.stdout)
289 && matches_or_missing(&self.stderr, &other.stderr)
290 }
291}
292
293fn matches_or_missing(a: &Option<String>, b: &[u8]) -> bool {

Callers

nothing calls this directly

Calls 3

matches_or_missingFunction · 0.85
unwrapMethod · 0.45
codeMethod · 0.45

Tested by

no test coverage detected