Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/AI45Lab/Code
/ expect
Method
expect
core/src/tools/builtin/bash.rs:972–978 ·
view source on GitHub ↗
(&mut self, expected: char)
Source
from the content-addressed store, hash-verified
970
}
971
972
fn expect(&mut self, expected: char) -> Option<()> {
973
self.skip_ws();
974
match self.next()? {
975
ch if ch == expected => Some(()),
976
_ => None,
977
}
978
}
979
}
980
981
pub struct BashTool;
Callers
15
collect_events
Function · 0.80
test_tool_executor_get_artifact
Function · 0.80
test_truncate_tool_output_with_artifact_reference
Function · 0.80
test_execute_attaches_diff_metadata
Function · 0.80
test_execute_with_context_attaches_diff_metadata
Function · 0.80
test_registry_truncates_large_tool_output
Function · 0.80
test_registry_execute_raw_stores_truncated_artifact
Function · 0.80
parallel_task_executor_runs_children_concurrently_and_preserves_input_order
Function · 0.80
parallel_task_tool_reports_error_when_any_child_fails
Function · 0.80
synthesize_progress_emits_tool_completed_for_tool_end
Function · 0.80
synthesize_progress_includes_error_kind_when_present
Function · 0.80
synthesize_progress_emits_turn_completed_for_turn_end
Function · 0.80
Calls
2
skip_ws
Method · 0.80
next
Method · 0.45
Tested by
15
test_tool_executor_get_artifact
Function · 0.64
test_truncate_tool_output_with_artifact_reference
Function · 0.64
test_execute_attaches_diff_metadata
Function · 0.64
test_execute_with_context_attaches_diff_metadata
Function · 0.64
test_registry_truncates_large_tool_output
Function · 0.64
test_registry_execute_raw_stores_truncated_artifact
Function · 0.64
synthesize_progress_emits_tool_completed_for_tool_end
Function · 0.64
synthesize_progress_includes_error_kind_when_present
Function · 0.64
synthesize_progress_emits_turn_completed_for_turn_end
Function · 0.64
test_edit_surfaces_concurrent_modification_as_typed_error
Function · 0.64
test_anthropic_stream_tool_input_from_content_block_start_is_preserved
Function · 0.64
mtls_accepts_self_signed_pair_from_rcgen
Function · 0.64