mirror of
https://github.com/rishikanthc/Scriberr.git
synced 2026-06-29 15:26:02 +00:00
29 lines
603 B
Go
29 lines
603 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
"strings"
|
|
"testing"
|
|
)
|
|
|
|
func TestServerMainDoesNotReferenceLegacyPythonStartup(t *testing.T) {
|
|
source, err := os.ReadFile("main.go")
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
for _, forbidden := range []string{
|
|
"internal/queue",
|
|
"internal/transcription/adapters",
|
|
"internal/transcription/registry",
|
|
"NewUnifiedJobProcessor",
|
|
"NewQuickTranscriptionService",
|
|
"InitEmbeddedPythonEnv",
|
|
"registerAdapters",
|
|
"WhisperXEnv",
|
|
} {
|
|
if strings.Contains(string(source), forbidden) {
|
|
t.Fatalf("server main still references legacy startup symbol %q", forbidden)
|
|
}
|
|
}
|
|
}
|