File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -36,11 +36,11 @@ func tmpDirOrDie() string {
3636}
3737
3838func TestGenBuildPath (t * testing.T ) {
39- want := filepath . Join ( os . TempDir (), "arduino-sketch-ACBD18DB4CC2F85CEDEF654FCCC4A4D8" )
40- assert .Equal (t , want , builder .GenBuildPath (paths .New ("foo" )).String ( ))
39+ want := paths . TempDir (). Join ( "arduino-sketch-ACBD18DB4CC2F85CEDEF654FCCC4A4D8" )
40+ assert .True (t , builder .GenBuildPath (paths .New ("foo" )).EquivalentTo ( want ))
4141
42- want = filepath . Join ( os . TempDir (), "arduino-sketch-D41D8CD98F00B204E9800998ECF8427E" )
43- assert .Equal (t , want , builder .GenBuildPath (nil ).String ( ))
42+ want = paths . TempDir (). Join ( "arduino-sketch-D41D8CD98F00B204E9800998ECF8427E" )
43+ assert .True (t , builder .GenBuildPath (nil ).EquivalentTo ( want ))
4444}
4545
4646func TestEnsureBuildPathExists (t * testing.T ) {
Original file line number Diff line number Diff line change 44
55require (
66 github.com/arduino/board-discovery v0.0.0-20180823133458-1ba29327fb0c
7- github.com/arduino/go-paths-helper v1.5 .0
7+ github.com/arduino/go-paths-helper v1.6 .0
88 github.com/arduino/go-properties-orderedmap v1.3.0
99 github.com/arduino/go-timeutils v0.0.0-20171220113728-d1dd9e313b1b
1010 github.com/arduino/go-win32-utils v0.0.0-20180330194947-ed041402e83b
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ github.com/arduino/go-paths-helper v1.4.0 h1:ilnseAdxmN1bFnLxxXHRtcdmt9jBf3O4jtY
1818github.com/arduino/go-paths-helper v1.4.0 /go.mod h1:V82BWgAAp4IbmlybxQdk9Bpkz8M4Qyx+RAFKaG9NuvU =
1919github.com/arduino/go-paths-helper v1.5.0 h1:RVo189hD+GhUS1rQ3gixwK1nSbvVR8MGIGa7Gxv2bdM =
2020github.com/arduino/go-paths-helper v1.5.0 /go.mod h1:V82BWgAAp4IbmlybxQdk9Bpkz8M4Qyx+RAFKaG9NuvU =
21+ github.com/arduino/go-paths-helper v1.6.0 h1:S7/d7DqB9XlnvF9KrgSiGmo2oWKmYW6O/DTjj3Bijx4 =
22+ github.com/arduino/go-paths-helper v1.6.0 /go.mod h1:V82BWgAAp4IbmlybxQdk9Bpkz8M4Qyx+RAFKaG9NuvU =
2123github.com/arduino/go-properties-orderedmap v1.3.0 h1:4No/vQopB36e7WUIk6H6TxiSEJPiMrVOCZylYmua39o =
2224github.com/arduino/go-properties-orderedmap v1.3.0 /go.mod h1:DKjD2VXY/NZmlingh4lSFMEYCVubfeArCsGPGDwb2yk =
2325github.com/arduino/go-timeutils v0.0.0-20171220113728-d1dd9e313b1b h1:9hDi4F2st6dbLC3y4i02zFT5quS4X6iioWifGlVwfy4 =
You can’t perform that action at this time.
0 commit comments