(id: i32)
| 451 | #[cfg(test)] |
| 452 | mod 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 { |
no outgoing calls