mirror of
https://gitlab.com/TECHNOFAB/nixtest.git
synced 2025-12-16 12:03:52 +01:00
chore: rename module to uppercase
This commit is contained in:
parent
5a7053afcb
commit
318b903d12
14 changed files with 28 additions and 28 deletions
|
|
@ -3,14 +3,14 @@ package main
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"gitlab.com/technofab/nixtest/internal/config"
|
"gitlab.com/TECHNOFAB/nixtest/internal/config"
|
||||||
appnix "gitlab.com/technofab/nixtest/internal/nix"
|
appnix "gitlab.com/TECHNOFAB/nixtest/internal/nix"
|
||||||
"gitlab.com/technofab/nixtest/internal/report/console"
|
"gitlab.com/TECHNOFAB/nixtest/internal/report/console"
|
||||||
"gitlab.com/technofab/nixtest/internal/report/junit"
|
"gitlab.com/TECHNOFAB/nixtest/internal/report/junit"
|
||||||
"gitlab.com/technofab/nixtest/internal/runner"
|
"gitlab.com/TECHNOFAB/nixtest/internal/runner"
|
||||||
appsnap "gitlab.com/technofab/nixtest/internal/snapshot"
|
appsnap "gitlab.com/TECHNOFAB/nixtest/internal/snapshot"
|
||||||
"gitlab.com/technofab/nixtest/internal/types"
|
"gitlab.com/TECHNOFAB/nixtest/internal/types"
|
||||||
"gitlab.com/technofab/nixtest/internal/util"
|
"gitlab.com/TECHNOFAB/nixtest/internal/util"
|
||||||
|
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
|
|
|
||||||
2
go.mod
2
go.mod
|
|
@ -1,4 +1,4 @@
|
||||||
module gitlab.com/technofab/nixtest
|
module gitlab.com/TECHNOFAB/nixtest
|
||||||
|
|
||||||
go 1.23.0
|
go 1.23.0
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
apperrors "gitlab.com/technofab/nixtest/internal/errors"
|
apperrors "gitlab.com/TECHNOFAB/nixtest/internal/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Service defines operations related to Nix
|
// Service defines operations related to Nix
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
apperrors "gitlab.com/technofab/nixtest/internal/errors"
|
apperrors "gitlab.com/TECHNOFAB/nixtest/internal/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestHelperProcess(t *testing.T) {
|
func TestHelperProcess(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,8 @@ import (
|
||||||
"github.com/jedib0t/go-pretty/v6/text"
|
"github.com/jedib0t/go-pretty/v6/text"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
"github.com/sergi/go-diff/diffmatchpatch"
|
"github.com/sergi/go-diff/diffmatchpatch"
|
||||||
"gitlab.com/technofab/nixtest/internal/types"
|
"gitlab.com/TECHNOFAB/nixtest/internal/types"
|
||||||
"gitlab.com/technofab/nixtest/internal/util"
|
"gitlab.com/TECHNOFAB/nixtest/internal/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
// PrintErrors prints error messages for failed tests
|
// PrintErrors prints error messages for failed tests
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/jedib0t/go-pretty/v6/text"
|
"github.com/jedib0t/go-pretty/v6/text"
|
||||||
"gitlab.com/technofab/nixtest/internal/types"
|
"gitlab.com/TECHNOFAB/nixtest/internal/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// captureOutput captures stdout and stderr during the execution of a function
|
// captureOutput captures stdout and stderr during the execution of a function
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,8 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"gitlab.com/technofab/nixtest/internal/types"
|
"gitlab.com/TECHNOFAB/nixtest/internal/types"
|
||||||
"gitlab.com/technofab/nixtest/internal/util"
|
"gitlab.com/TECHNOFAB/nixtest/internal/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
type JUnitReport struct {
|
type JUnitReport struct {
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"gitlab.com/technofab/nixtest/internal/types"
|
"gitlab.com/TECHNOFAB/nixtest/internal/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
func formatDurationSeconds(d time.Duration) string {
|
func formatDurationSeconds(d time.Duration) string {
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,10 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
"gitlab.com/technofab/nixtest/internal/nix"
|
"gitlab.com/TECHNOFAB/nixtest/internal/nix"
|
||||||
"gitlab.com/technofab/nixtest/internal/snapshot"
|
"gitlab.com/TECHNOFAB/nixtest/internal/snapshot"
|
||||||
"gitlab.com/technofab/nixtest/internal/types"
|
"gitlab.com/TECHNOFAB/nixtest/internal/types"
|
||||||
"gitlab.com/technofab/nixtest/internal/util"
|
"gitlab.com/TECHNOFAB/nixtest/internal/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Runner executes tests based on provided specifications and configuration
|
// Runner executes tests based on provided specifications and configuration
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,8 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
apperrors "gitlab.com/technofab/nixtest/internal/errors"
|
apperrors "gitlab.com/TECHNOFAB/nixtest/internal/errors"
|
||||||
"gitlab.com/technofab/nixtest/internal/types"
|
"gitlab.com/TECHNOFAB/nixtest/internal/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// --- Mock Service Implementations ---
|
// --- Mock Service Implementations ---
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,8 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
apperrors "gitlab.com/technofab/nixtest/internal/errors"
|
apperrors "gitlab.com/TECHNOFAB/nixtest/internal/errors"
|
||||||
"gitlab.com/technofab/nixtest/internal/util"
|
"gitlab.com/TECHNOFAB/nixtest/internal/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Service defines operations related to test snapshots
|
// Service defines operations related to test snapshots
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
apperrors "gitlab.com/technofab/nixtest/internal/errors"
|
apperrors "gitlab.com/TECHNOFAB/nixtest/internal/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestDefaultService_GetPath(t *testing.T) {
|
func TestDefaultService_GetPath(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ import (
|
||||||
|
|
||||||
"github.com/akedrou/textdiff"
|
"github.com/akedrou/textdiff"
|
||||||
"github.com/akedrou/textdiff/myers"
|
"github.com/akedrou/textdiff/myers"
|
||||||
apperrors "gitlab.com/technofab/nixtest/internal/errors"
|
apperrors "gitlab.com/TECHNOFAB/nixtest/internal/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ComputeDiff(expected, actual string) (string, error) {
|
func ComputeDiff(expected, actual string) (string, error) {
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
apperrors "gitlab.com/technofab/nixtest/internal/errors"
|
apperrors "gitlab.com/TECHNOFAB/nixtest/internal/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestComputeDiff(t *testing.T) {
|
func TestComputeDiff(t *testing.T) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue