@@ -62,7 +62,7 @@ func TestLoadHardware(t *testing.T) {
62
62
require .Equal (t , "-v" , avrPlatform .Releases ["" ].Properties .Get ("tools.avrdude.bootloader.params.verbose" ))
63
63
require .Equal (t , "/my/personal/avrdude" , avrPlatform .Releases ["" ].Properties .Get ("tools.avrdude.cmd.path" ))
64
64
65
- require .Equal (t , "AVRISP mkII" , avrPlatform .Releases ["" ].Programmers ["avrispmkii" ].Get ( "name" ) )
65
+ require .Equal (t , "AVRISP mkII" , avrPlatform .Releases ["" ].Programmers ["avrispmkii" ].Name )
66
66
67
67
//require.Equal(t, "{runtime.tools.ctags.path}", packages.Properties.Get("tools.ctags.path"])
68
68
//require.Equal(t, "\"{cmd.path}\" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives \"{source_file}\"", packages.Properties.Get("tools.ctags.pattern"])
@@ -114,7 +114,7 @@ func TestLoadHardwareMixingUserHardwareFolder(t *testing.T) {
114
114
require .Equal (t , "-v" , avrPlatform .Properties .Get ("tools.avrdude.bootloader.params.verbose" ))
115
115
require .Equal (t , "/my/personal/avrdude" , avrPlatform .Properties .Get ("tools.avrdude.cmd.path" ))
116
116
117
- require .Equal (t , "AVRISP mkII" , avrPlatform .Programmers ["avrispmkii" ].Get ( "name" ) )
117
+ require .Equal (t , "AVRISP mkII" , avrPlatform .Programmers ["avrispmkii" ].Name )
118
118
119
119
require .Equal (t , "-w -x c++ -M -MG -MP" , avrPlatform .Properties .Get ("preproc.includes.flags" ))
120
120
require .Equal (t , "-w -x c++ -E -CC" , avrPlatform .Properties .Get ("preproc.macros.flags" ))
@@ -177,8 +177,8 @@ func TestLoadHardwareWithBoardManagerFolderStructure(t *testing.T) {
177
177
178
178
require .Equal (t , 3 , len (samdPlatform .Programmers ))
179
179
180
- require .Equal (t , "Atmel EDBG" , samdPlatform .Programmers ["edbg" ].Get ( "name" ) )
181
- require .Equal (t , "openocd" , samdPlatform .Programmers ["edbg" ].Get ("program.tool" ))
180
+ require .Equal (t , "Atmel EDBG" , samdPlatform .Programmers ["edbg" ].Name )
181
+ require .Equal (t , "openocd" , samdPlatform .Programmers ["edbg" ].Properties . Get ("program.tool" ))
182
182
183
183
avrRedBearPlatform := packages ["RedBearLab" ].Platforms ["avr" ].Releases ["1.0.0" ]
184
184
require .Equal (t , 3 , len (avrRedBearPlatform .Boards ))
0 commit comments