MCPcopy Index your code
hub / github.com/endbasic/endbasic / add_key_chars

Method add_key_chars

std/src/console/readline.rs:555–560  ·  view source on GitHub ↗

Adds a bunch of `chars` as individual key presses to the golden input.

(mut self, chars: &'static str)

Source from the content-addressed store, hash-verified

553
554 /// Adds a bunch of `chars` as individual key presses to the golden input.
555 fn add_key_chars(mut self, chars: &'static str) -> Self {
556 for ch in chars.chars() {
557 self.keys.push(Key::Char(ch));
558 }
559 self
560 }
561
562 /// Adds a single state change to the expected output.
563 fn add_output(mut self, output: CapturedOut) -> Self {

Calls 2

charsMethod · 0.80
pushMethod · 0.80