MCPcopy Create free account
hub / github.com/astral-sh/ruff / stmt_assert_fields

Function stmt_assert_fields

crates/ruff_python_ast/src/comparable.rs:1970–1981  ·  view source on GitHub ↗
(node: &ast::StmtAssert)

Source from the content-addressed store, hash-verified

1968}
1969
1970fn stmt_assert_fields(node: &ast::StmtAssert) -> StmtAssertFields<'_> {
1971 let ast::StmtAssert {
1972 test,
1973 msg,
1974 range: _,
1975 node_index: _,
1976 } = node;
1977 StmtAssertFields {
1978 test: test.into(),
1979 msg: msg.as_ref().map(Into::into),
1980 }
1981}
1982
1983#[derive(Debug, PartialEq, Eq, Hash)]
1984struct StmtImportFields<'a> {

Callers

nothing calls this directly

Calls 2

mapMethod · 0.45
as_refMethod · 0.45

Tested by

no test coverage detected