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

Method set_peek_pixel

std/src/testutils.rs:221–223  ·  view source on GitHub ↗

Sets the color to return from `peek_pixel` at the given location.

(&mut self, xy: PixelsXY, color: Option<u8>)

Source from the content-addressed store, hash-verified

219
220 /// Sets the color to return from `peek_pixel` at the given location.
221 pub fn set_peek_pixel(&mut self, xy: PixelsXY, color: Option<u8>) {
222 self.peek_pixels.insert(xy, color);
223 }
224}
225
226impl Drop for MockConsole {

Callers 1

test_gfx_peek_okFunction · 0.80

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected