Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

style: gofmt

Boschce0343e9e56e
diff --git a/internal/engine/router_test.go b/internal/engine/router_test.go
index 0b6e8219..f666042d 100644
--- a/internal/engine/router_test.go
+++ b/internal/engine/router_test.go
@@ -14,10 +14,10 @@ func (f *fakeEngine) Snapshot(_ context.Context, _, _ string) (*SnapshotResult,
return nil, nil
}
func (f *fakeEngine) Text(_ context.Context, _ string) (*TextResult, error) { return nil, nil }
-func (f *fakeEngine) Click(_ context.Context, _, _ string) error { return nil }
-func (f *fakeEngine) Type(_ context.Context, _, _, _ string) error { return nil }
-func (f *fakeEngine) Capabilities() []Capability { return nil }
-func (f *fakeEngine) Close() error { return nil }
+func (f *fakeEngine) Click(_ context.Context, _, _ string) error { return nil }
+func (f *fakeEngine) Type(_ context.Context, _, _, _ string) error { return nil }
+func (f *fakeEngine) Capabilities() []Capability { return nil }
+func (f *fakeEngine) Close() error { return nil }
func TestRouterChromeMode(t *testing.T) {
r := NewRouter(ModeChrome, nil)
diff --git a/internal/engine/safe.go b/internal/engine/safe.go
index 731dcd1a..6e5303cb 100644
--- a/internal/engine/safe.go
+++ b/internal/engine/safe.go
@@ -31,9 +31,9 @@ func NewSafeEngine(inner Engine, guard idpi.Guard, wrapContent bool) Engine {
}
}
-func (s *SafeEngine) Name() string { return s.inner.Name() }
+func (s *SafeEngine) Name() string { return s.inner.Name() }
func (s *SafeEngine) Capabilities() []Capability { return s.inner.Capabilities() }
-func (s *SafeEngine) Close() error { return s.inner.Close() }
+func (s *SafeEngine) Close() error { return s.inner.Close() }
func (s *SafeEngine) Navigate(ctx context.Context, url string) (*NavigateResult, error) {
// Pre-flight: IDPI domain check.
diff --git a/internal/engine/safe_test.go b/internal/engine/safe_test.go
index a0ce3e82..81a55e88 100644
--- a/internal/engine/safe_test.go
+++ b/internal/engine/safe_test.go
@@ -16,20 +16,20 @@ type stubGuard struct {
domainAllowed bool
}
-func (g *stubGuard) Enabled() bool { return g.enabled }
-func (g *stubGuard) CheckDomain(_ string) idpi.CheckResult { return g.domainResult }
-func (g *stubGuard) ScanContent(_ string) idpi.CheckResult { return g.contentResult }
-func (g *stubGuard) DomainAllowed(_ string) bool { return g.domainAllowed }
-func (g *stubGuard) WrapContent(text, _ string) string { return "<wrapped>" + text + "</wrapped>" }
+func (g *stubGuard) Enabled() bool { return g.enabled }
+func (g *stubGuard) CheckDomain(_ string) idpi.CheckResult { return g.domainResult }
+func (g *stubGuard) ScanContent(_ string) idpi.CheckResult { return g.contentResult }
+func (g *stubGuard) DomainAllowed(_ string) bool { return g.domainAllowed }
+func (g *stubGuard) WrapContent(text, _ string) string { return "<wrapped>" + text + "</wrapped>" }
// mockEngine implements Engine for testing SafeEngine.
type mockEngine struct {
- navigateResult *NavigateResult
- snapshotResult *SnapshotResult
- textResult *TextResult
- navigateCalled bool
- snapshotCalled bool
- textCalled bool
+ navigateResult *NavigateResult
+ snapshotResult *SnapshotResult
+ textResult *TextResult
+ navigateCalled bool
+ snapshotCalled bool
+ textCalled bool
}
func (m *mockEngine) Name() string { return "mock" }