Skip to content

Commit ca4af9d

Browse files
committed
swift improvement to fix tech
1 parent 102eb01 commit ca4af9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

commands/audit/sca/swift/swift_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ func TestGetTechDependencyLocation(t *testing.T) {
6666
defer cleanUp()
6767
currentDir, err := coreutils.GetWorkingDirectory()
6868
assert.NoError(t, err)
69-
locations, err := GetTechDependencyLocation("github.com/apple/swift-algorithms", "1.2.0", filepath.Join(currentDir, "Package.swift"))
69+
locations, err := GetTechDependencyLocation("github.com/apple/swift-algorithms", "1.1.0", filepath.Join(currentDir, "Package.swift"))
7070
assert.NoError(t, err)
7171
assert.Len(t, locations, 1)
7272
assert.Equal(t, *locations[0].PhysicalLocation.Region.StartLine, 10)
7373
assert.Equal(t, *locations[0].PhysicalLocation.Region.StartColumn, 10)
7474
assert.Equal(t, *locations[0].PhysicalLocation.Region.EndLine, 31)
7575
assert.Equal(t, *locations[0].PhysicalLocation.Region.EndColumn, 80)
76-
assert.Contains(t, *locations[0].PhysicalLocation.Region.Snippet.Text, "github.com/apple/swift-algorithms\", from: \"1.2.0\"")
76+
assert.Contains(t, *locations[0].PhysicalLocation.Region.Snippet.Text, "github.com/apple/swift-algorithms\", from: \"1.1.0\"")
7777
}
7878

7979
func TestSwiftLineParse(t *testing.T) {

0 commit comments

Comments
 (0)