mirror of
https://github.com/lukaszraczylo/claude-mnemonic.git
synced 2026-06-12 00:19:20 +00:00
57e0db5b1e
Add blank import of mattn/go-sqlite3 to hybrid test files to ensure
the SQLite driver is linked into the test binary. This provides the
SQLite symbols that sqlite-vec-go-bindings requires.
Root cause:
- hybrid package imports sqlitevec (transitively depends on sqlite-vec CGO)
- Test binary needs SQLite symbols for linking
- sqlitevec tests already had this import, but hybrid tests didn't
- Without the driver import, linker fails with "undefined symbols"
This fix enables hybrid tests to run with -race flag on all platforms.
Before: 41/42 packages pass (hybrid failed to link)
After: 42/42 packages pass ✅
Fixes hybrid test compilation on macOS ARM64, Linux, and Windows.
18 lines
537 B
Go
18 lines
537 B
Go
package hybrid
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/lukaszraczylo/claude-mnemonic/internal/vector"
|
|
_ "github.com/mattn/go-sqlite3" // Import SQLite driver for CGO linking
|
|
)
|
|
|
|
// TestInterfaceImplementation verifies that hybrid clients implement vector.Client interface
|
|
func TestInterfaceImplementation(t *testing.T) {
|
|
// Compile-time check that Client implements vector.Client
|
|
var _ vector.Client = (*Client)(nil)
|
|
|
|
// Compile-time check that GraphSearchClient implements vector.Client
|
|
var _ vector.Client = (*GraphSearchClient)(nil)
|
|
}
|