Skip to content

refactor: replace monkey patching with dependency injection#1472

Merged
oferchen merged 1 commit into
mainfrom
codex/refactor-components-to-use-interfaces
Aug 27, 2025
Merged

refactor: replace monkey patching with dependency injection#1472
oferchen merged 1 commit into
mainfrom
codex/refactor-components-to-use-interfaces

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • remove bou.ke/monkey and wire file creation and digest functions through params
  • allow verify runner to inject device detection and verification logic for tests
  • rewrite tests to use fakes instead of runtime patching

Testing

  • go build ./...
  • go test -coverprofile=coverage.out ./...
  • go tool cover -func=coverage.out | tail -n 1
  • golangci-lint run (fails: numerous errcheck/revive/staticcheck issues)

https://chatgpt.com/codex/tasks/task_e_68af43a2e5e083238fe82f1c9aa67f97

@oferchen oferchen merged commit 1a12063 into main Aug 27, 2025
5 of 14 checks passed
@oferchen oferchen deleted the codex/refactor-components-to-use-interfaces branch August 27, 2025 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant