MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / cake_model

Function cake_model

src/query/loader.rs:453–463  ·  view source on GitHub ↗
(id: i32)

Source from the content-addressed store, hash-verified

451#[cfg(test)]
452mod tests {
453 fn cake_model(id: i32) -> sea_orm::tests_cfg::cake::Model {
454 let name = match id {
455 1 => "apple cake",
456 2 => "orange cake",
457 3 => "fruit cake",
458 4 => "chocolate cake",
459 _ => "",
460 }
461 .to_string();
462 sea_orm::tests_cfg::cake::Model { id, name }
463 }
464
465 fn fruit_model(id: i32, cake_id: Option<i32>) -> sea_orm::tests_cfg::fruit::Model {
466 let name = match id {

Callers 4

test_load_oneFunction · 0.70
test_load_one_same_cakeFunction · 0.70
test_load_one_emptyFunction · 0.70

Calls

no outgoing calls

Tested by 4

test_load_oneFunction · 0.56
test_load_one_same_cakeFunction · 0.56
test_load_one_emptyFunction · 0.56