Skip to content

Commit

Permalink
chore: nit
Browse files Browse the repository at this point in the history
  • Loading branch information
leovct committed Nov 29, 2024
1 parent 948f573 commit c1fdd37
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ package git_package_content_provider

import (
"fmt"
"os"
"path"
"testing"

"github.com/kurtosis-tech/kurtosis/api/golang/core/lib/shared_utils"
"github.com/kurtosis-tech/kurtosis/container-engine-lib/lib/database_accessors/enclave_db"
"github.com/kurtosis-tech/kurtosis/core/server/api_container/server/startosis_engine/docker_compose_transpiler"
Expand All @@ -12,9 +16,6 @@ import (
"github.com/kurtosis-tech/stacktrace"
"github.com/stretchr/testify/require"
bolt "go.etcd.io/bbolt"
"os"
"path"
"testing"
)

const (
Expand Down Expand Up @@ -600,7 +601,7 @@ func TestGetAbsoluteLocator_AbsoluteLocatorIsInRootPackageButSourceIsNotShouldNo
require.Nil(t, err)
}

func TestGetAbsoluteLocator_RepositoriesWithSamePrefixNameShouldNotBeBlocked(t *testing.T) {
func TestGetAbsoluteLocator_ImportPackageWithSamePrefixNameAsRootPackageShouldNotBeBlocked(t *testing.T) {
provider := NewGitPackageContentProvider("", "", NewGitHubPackageAuthProvider(""), nil)

packageId := "github.com/main-package"
Expand Down Expand Up @@ -631,7 +632,7 @@ func Test_isSamePackageLocalAbsoluteLocator_TestDetectionInDifferentSubdirectori
require.True(t, result)
}

func Test_isNotSamePackageLocalAbsoluteLocator_TestRepositoriesWithSamePrefixNames(t *testing.T) {
func Test_isNotSamePackageLocalAbsoluteLocator_TestImportPackageWithSamePrefixNameAsRootPackages(t *testing.T) {
// Without root package id trailing slash.
result := shouldBlockAbsoluteLocatorBecauseIsInTheSameSourceModuleLocatorPackage("github.com/author/package2/main.star", "github.com/author/package/main.star", "github.com/author/package")
require.False(t, result)
Expand Down

0 comments on commit c1fdd37

Please sign in to comment.