mirror of
https://github.com/mark3labs/kit.git
synced 2026-06-14 03:30:26 +00:00
b6adcf159e
Add comprehensive testing utilities for Kit extensions: - internal/extensions/test/: New test package with: - harness.go: Test harness for loading extensions into Yaegi - mock.go: Mock context that records all context interactions - assert.go: 20+ assertion helpers (AssertBlocked, AssertWidgetSet, etc.) - harness_test.go: 18 comprehensive test examples - README.md: Complete documentation with usage examples - internal/extensions/test_api.go: Helper function for creating test API objects - examples/extensions/tool-logger_test.go: 14 tests demonstrating real extension testing - examples/extensions/extension_test_template.go: Copy-and-paste template for extension authors - .gitignore: Allow internal/extensions/test/ directory All 93 tests pass including race detector.