Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/djhworld/simple-computer
/ Disable
Method
Disable
components/register.go:43–45 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
41
}
42
43
func
(r *Register) Disable() {
44
r.enable.Update(false)
45
}
46
47
func
(r *Register) Set() {
48
r.set.Update(true)
Callers
5
TestRegisterWordIsSet
Function · 0.95
TestRegisterOutputIsZeroWhenDisabled
Function · 0.95
TestBusIsUpdatedOnRegisterEnable
Function · 0.95
TestOutputBusIsUsedWhenDifferentFromInputBus
Function · 0.95
TestBusIsNOTUpdatedOnRegisterDisabled
Function · 0.95
Calls
1
Update
Method · 0.65
Tested by
5
TestRegisterWordIsSet
Function · 0.76
TestRegisterOutputIsZeroWhenDisabled
Function · 0.76
TestBusIsUpdatedOnRegisterEnable
Function · 0.76
TestOutputBusIsUsedWhenDifferentFromInputBus
Function · 0.76
TestBusIsNOTUpdatedOnRegisterDisabled
Function · 0.76