MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / push_include

Function push_include

crates/opencode-provider/src/responses.rs:2323–2327  ·  view source on GitHub ↗
(include: &mut Vec<ResponsesIncludeValue>, value: ResponsesIncludeValue)

Source from the content-addressed store, hash-verified

2321}
2322
2323fn push_include(include: &mut Vec<ResponsesIncludeValue>, value: ResponsesIncludeValue) {
2324 if !include.contains(&value) {
2325 include.push(value);
2326 }
2327}
2328
2329fn insert_opt_string(obj: &mut serde_json::Map<String, Value>, key: &str, value: Option<String>) {
2330 if let Some(value) = value {

Callers 1

get_argsMethod · 0.85

Calls 1

containsMethod · 0.80

Tested by

no test coverage detected