Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-cli
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Operations
Operations
Metrics
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-cli
Commits
eed6d58f
Unverified
Commit
eed6d58f
authored
Jul 18, 2019
by
Massimiliano Pippi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix legacy code
parent
311edfa0
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
54 deletions
+52
-54
legacy/builder/test/hardware_loader_test.go
legacy/builder/test/hardware_loader_test.go
+48
-48
legacy/builder/test/rewrite_hardware_keys_test.go
legacy/builder/test/rewrite_hardware_keys_test.go
+4
-6
No files found.
legacy/builder/test/hardware_loader_test.go
View file @
eed6d58f
This diff is collapsed.
Click to expand it.
legacy/builder/test/rewrite_hardware_keys_test.go
View file @
eed6d58f
...
...
@@ -42,10 +42,9 @@ import (
func
TestRewriteHardwareKeys
(
t
*
testing
.
T
)
{
ctx
:=
&
types
.
Context
{}
packages
:=
&
cores
.
Packages
{}
packages
.
Packages
=
map
[
string
]
*
cores
.
Package
{}
packages
:=
cores
.
Packages
{}
aPackage
:=
&
cores
.
Package
{
Name
:
"dummy"
}
packages
.
Packages
[
"dummy"
]
=
aPackage
packages
[
"dummy"
]
=
aPackage
aPackage
.
Platforms
=
map
[
string
]
*
cores
.
Platform
{}
platform
:=
&
cores
.
PlatformRelease
{
...
...
@@ -83,10 +82,9 @@ func TestRewriteHardwareKeys(t *testing.T) {
func
TestRewriteHardwareKeysWithRewritingDisabled
(
t
*
testing
.
T
)
{
ctx
:=
&
types
.
Context
{}
packages
:=
&
cores
.
Packages
{}
packages
.
Packages
=
make
(
map
[
string
]
*
cores
.
Package
)
packages
:=
cores
.
Packages
{}
aPackage
:=
&
cores
.
Package
{
Name
:
"dummy"
}
packages
.
Packages
[
"dummy"
]
=
aPackage
packages
[
"dummy"
]
=
aPackage
aPackage
.
Platforms
=
make
(
map
[
string
]
*
cores
.
Platform
)
platform
:=
&
cores
.
PlatformRelease
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment