@@ -62,7 +62,7 @@ func TestLoadHardware(t *testing.T) {
6262 require .Equal (t , "-v" , avrPlatform .Releases ["" ].Properties .Get ("tools.avrdude.bootloader.params.verbose" ))
6363 require .Equal (t , "/my/personal/avrdude" , avrPlatform .Releases ["" ].Properties .Get ("tools.avrdude.cmd.path" ))
6464
65- require .Equal (t , "AVRISP mkII" , avrPlatform .Releases ["" ].Programmers ["avrispmkii" ].Get ( "name" ) )
65+ require .Equal (t , "AVRISP mkII" , avrPlatform .Releases ["" ].Programmers ["avrispmkii" ].Name )
6666
6767 //require.Equal(t, "{runtime.tools.ctags.path}", packages.Properties.Get("tools.ctags.path"])
6868 //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) {
114114 require .Equal (t , "-v" , avrPlatform .Properties .Get ("tools.avrdude.bootloader.params.verbose" ))
115115 require .Equal (t , "/my/personal/avrdude" , avrPlatform .Properties .Get ("tools.avrdude.cmd.path" ))
116116
117- require .Equal (t , "AVRISP mkII" , avrPlatform .Programmers ["avrispmkii" ].Get ( "name" ) )
117+ require .Equal (t , "AVRISP mkII" , avrPlatform .Programmers ["avrispmkii" ].Name )
118118
119119 require .Equal (t , "-w -x c++ -M -MG -MP" , avrPlatform .Properties .Get ("preproc.includes.flags" ))
120120 require .Equal (t , "-w -x c++ -E -CC" , avrPlatform .Properties .Get ("preproc.macros.flags" ))
@@ -177,8 +177,8 @@ func TestLoadHardwareWithBoardManagerFolderStructure(t *testing.T) {
177177
178178 require .Equal (t , 3 , len (samdPlatform .Programmers ))
179179
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" ))
182182
183183 avrRedBearPlatform := packages ["RedBearLab" ].Platforms ["avr" ].Releases ["1.0.0" ]
184184 require .Equal (t , 3 , len (avrRedBearPlatform .Boards ))
0 commit comments