MCPcopy Index your code
hub / github.com/djhworld/simple-computer / SetInputWire

Method SetInputWire

components/components_test.go:20–22  ·  view source on GitHub ↗
(index int, value bool)

Source from the content-addressed store, hash-verified

18}
19
20func (d *DummyComponent) SetInputWire(index int, value bool) {
21 d.wires[index].Update(value)
22}
23
24func (d *DummyComponent) GetOutputWire(index int) bool {
25 return d.wires[index].Get()

Callers

nothing calls this directly

Calls 1

UpdateMethod · 0.65

Tested by

no test coverage detected