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