MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / test_parse_jsonc_simple

Function test_parse_jsonc_simple

crates/opencode-config/src/loader.rs:1428–1432  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1426
1427 #[test]
1428 fn test_parse_jsonc_simple() {
1429 let content = r#"{"model": "claude-3-opus"}"#;
1430 let config: Config = parse_jsonc(content).unwrap();
1431 assert_eq!(config.model, Some("claude-3-opus".to_string()));
1432 }
1433
1434 #[test]
1435 fn test_parse_jsonc_with_comments() {

Callers

nothing calls this directly

Calls 1

parse_jsoncFunction · 0.85

Tested by

no test coverage detected