Merged in feature/shorttestsanddirtidy (pull request #26)

Add short tests and Tidy internal directories

* complete the tasks
This commit is contained in:
Michael McGuinness
2025-01-17 12:00:32 +00:00
parent b453f6cb23
commit fa95d733ca
84 changed files with 171 additions and 101 deletions
+2 -2
View File
@@ -3,8 +3,8 @@ package controllers
import (
"context"
"encoding/json"
"queryorchestration/internal/document"
"queryorchestration/internal/queue"
"queryorchestration/internal/query/document"
"queryorchestration/internal/server/queue"
"github.com/go-playground/validator/v10"
+5 -2
View File
@@ -6,8 +6,8 @@ import (
controllers "queryorchestration/api/queryRunner"
"queryorchestration/internal/database"
"queryorchestration/internal/database/repository"
"queryorchestration/internal/document"
"queryorchestration/internal/queue"
"queryorchestration/internal/query/document"
"queryorchestration/internal/server/queue"
"queryorchestration/internal/test"
"testing"
@@ -20,6 +20,9 @@ import (
)
func TestQueryRunner(t *testing.T) {
if testing.Short() {
t.Skip("Skipping long test in short mode")
}
ctx := context.Background()
qCfg, cleanup := test.CreateQueue(t, ctx, &test.CreateQueueConfig{})
+1 -1
View File
@@ -1,8 +1,8 @@
package queryservice
import (
"queryorchestration/internal/collector"
"queryorchestration/internal/export"
"queryorchestration/internal/job/collector"
"queryorchestration/internal/query"
"github.com/go-playground/validator/v10"
+1 -1
View File
@@ -3,7 +3,7 @@ package queryservice
import (
"errors"
"queryorchestration/internal/query"
queryprocessor "queryorchestration/internal/queryProcessor"
queryprocessor "queryorchestration/internal/query/processor"
)
func parseQueries(queries []*query.Query) ([]Query, error) {
+1 -1
View File
@@ -2,7 +2,7 @@ package queryservice
import (
"queryorchestration/internal/query"
queryprocessor "queryorchestration/internal/queryProcessor"
queryprocessor "queryorchestration/internal/query/processor"
"testing"
"github.com/google/uuid"
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"fmt"
"net/http"
"queryorchestration/internal/query"
queryprocessor "queryorchestration/internal/queryProcessor"
queryprocessor "queryorchestration/internal/query/processor"
"github.com/google/uuid"
"github.com/labstack/echo/v4"