@@ -230,7 +230,7 @@ func testManifest(t *testing.T, factory storageFactory) {
230
230
name : "MissingVersion" ,
231
231
error : fs .ErrNotExist ,
232
232
extension : testutil .Extensions [0 ],
233
- version : "some-nonexistent- version" ,
233
+ version : "some-nonexistent@ version" ,
234
234
},
235
235
{
236
236
name : "MissingExtension" ,
@@ -275,7 +275,7 @@ func testManifest(t *testing.T, factory storageFactory) {
275
275
// manifest since it is not on the actual manifest on disk.
276
276
expected .Assets .Asset = append (expected .Assets .Asset , storage.VSIXAsset {
277
277
Type : storage .VSIXAssetType ,
278
- Path : fmt .Sprintf ("%s.%s- %s.vsix" , test .extension .Publisher , test .extension .Name , version ),
278
+ Path : fmt .Sprintf ("%s.%s@ %s.vsix" , test .extension .Publisher , test .extension .Name , version ),
279
279
Addressable : "true" ,
280
280
})
281
281
require .NoError (t , err )
@@ -335,7 +335,7 @@ func testWalkExtensions(t *testing.T, factory storageFactory) {
335
335
// manifest since it is not on the actual manifest on disk.
336
336
manifest .Assets .Asset = append (manifest .Assets .Asset , storage.VSIXAsset {
337
337
Type : storage .VSIXAssetType ,
338
- Path : fmt .Sprintf ("%s.%s- %s.vsix" , ext .Publisher , ext .Name , ext .LatestVersion ),
338
+ Path : fmt .Sprintf ("%s.%s@ %s.vsix" , ext .Publisher , ext .Name , ext .LatestVersion ),
339
339
Addressable : "true" ,
340
340
})
341
341
expected = append (expected , extension {
@@ -734,7 +734,7 @@ func testAddExtension(t *testing.T, factory storageFactory) {
734
734
// Put a directory in the way of the vsix.
735
735
f := factory (t )
736
736
ext := testutil .Extensions [3 ]
737
- vsixName := fmt .Sprintf ("%s.%s- %s.vsix" , ext .Publisher , ext .Name , ext .LatestVersion )
737
+ vsixName := fmt .Sprintf ("%s.%s@ %s.vsix" , ext .Publisher , ext .Name , ext .LatestVersion )
738
738
f .write ([]byte ("foo" ), ext .Publisher , ext .Name , ext .LatestVersion , vsixName , "foo" )
739
739
740
740
for _ , test := range tests {
@@ -909,7 +909,7 @@ func TestExtensionID(t *testing.T) {
909
909
}{
910
910
{
911
911
name : "OK" ,
912
- expected : "foo.bar- test" ,
912
+ expected : "foo.bar@ test" ,
913
913
manifest : & storage.VSIXManifest {
914
914
Metadata : storage.VSIXMetadata {
915
915
Identity : storage.VSIXIdentity {
@@ -948,12 +948,12 @@ func TestParseExtensionID(t *testing.T) {
948
948
{
949
949
name : "OK" ,
950
950
expected : []string {"foo" , "bar" , "test" },
951
- id : "foo.bar- test" ,
951
+ id : "foo.bar@ test" ,
952
952
},
953
953
{
954
954
name : "VersionWithDots" ,
955
955
expected : []string {"foo" , "bar" , "test.test" },
956
- id : "foo.bar- test.test" ,
956
+ id : "foo.bar@ test.test" ,
957
957
},
958
958
{
959
959
name : "EmptyID" ,
@@ -963,12 +963,12 @@ func TestParseExtensionID(t *testing.T) {
963
963
{
964
964
name : "MissingPublisher" ,
965
965
error : true ,
966
- id : ".qux- bar" ,
966
+ id : ".qux@ bar" ,
967
967
},
968
968
{
969
969
name : "MissingExtension" ,
970
970
error : true ,
971
- id : "foo.- baz" ,
971
+ id : "foo.@ baz" ,
972
972
},
973
973
{
974
974
name : "MissingExtensionAndVersion" ,
@@ -983,7 +983,7 @@ func TestParseExtensionID(t *testing.T) {
983
983
{
984
984
name : "InvalidID" ,
985
985
error : true ,
986
- id : "publisher- version" ,
986
+ id : "publisher@ version" ,
987
987
},
988
988
}
989
989
0 commit comments