MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / hosted_is_default_for_main_programs

Function hosted_is_default_for_main_programs

src/target_mode.rs:32–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30
31 #[test]
32 fn hosted_is_default_for_main_programs() {
33 let mode =
34 infer_target_mode_for_source("main: () -> i32 { return 0 }", false, TargetMode::Kernel);
35 assert_eq!(mode, TargetMode::Hosted);
36 }
37
38 #[test]
39 fn kernel_mode_is_selected_for_kmain_programs() {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected