Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/docker/docker-agent
/ setData
Method
setData
pkg/server/source_loader_test.go:42–46 ·
view source on GitHub ↗
(data []byte)
Source
from the content-addressed store, hash-verified
40
}
41
42
func
(m *mockSource) setData(data []byte) {
43
m.mu.Lock()
44
defer
m.mu.Unlock()
45
m.data = data
46
}
47
48
func
(m *mockSource) setErr(err error) {
49
m.mu.Lock()
Callers
1
TestSourceLoader_Read_DataChanges
Function · 0.95
Calls
2
Lock
Method · 0.45
Unlock
Method · 0.45
Tested by
no test coverage detected