MCPcopy Index your code
hub / github.com/coder/coder / EqualConfig

Method EqualConfig

agent/agentcontainers/subagent.go:42–49  ·  view source on GitHub ↗
(other SubAgent)

Source from the content-addressed store, hash-verified

40}
41
42func (s SubAgent) EqualConfig(other SubAgent) bool {
43 return s.Name == other.Name &&
44 s.Directory == other.Directory &&
45 s.Architecture == other.Architecture &&
46 s.OperatingSystem == other.OperatingSystem &&
47 slices.Equal(s.DisplayApps, other.DisplayApps) &&
48 slices.Equal(s.Apps, other.Apps)
49}
50
51type SubAgentApp struct {
52 Slug string `json:"slug"`

Calls 1

EqualMethod · 0.45

Tested by 1

TestSubAgent_EqualConfigFunction · 0.76