mirror of
https://github.com/coder/coder.git
synced 2026-06-04 05:28:20 +00:00
5e84d257b7
Fixes https://github.com/coder/internal/issues/907 We convert `workspacesdk.AgentConn` to an interface and generate a mock for it. This allows writing `coderd` tests that rely on the agent's HTTP api to not have to set up an entire tailnet networking stack.
5 lines
213 B
Go
5 lines
213 B
Go
// Package agentconnmock contains a mock implementation of workspacesdk.AgentConn for use in tests.
|
|
package agentconnmock
|
|
|
|
//go:generate mockgen -destination ./agentconnmock.go -package agentconnmock .. AgentConn
|