Commit graph

1613 commits

Author SHA1 Message Date
Kent Gruber
6414f00df7 replace q.Protos[name] += 1 with q.Protos[name]++
minor refactor from golint:
should replace q.Protos[name] += 1 with q.Protos[name]++
2018-05-02 11:48:26 -04:00
Simone Margaritelli
f35a8b98ac
Merge pull request #259 from picatz/minor-refactors
Minor refactors using golint
2018-05-02 10:21:11 +02:00
Simone Margaritelli
fc070138bf
Merge pull request #257 from picatz/test-network-wifi
add basic test for WiFi related functions in network package
2018-05-02 10:20:28 +02:00
Kent Gruber
ca42274656 if block ends with a return statement drop this else and outdent its block 2018-05-01 23:22:29 -04:00
Kent Gruber
f09125b166 if block ends with a return statement drop this else and outdent its block 2018-05-01 23:22:26 -04:00
Kent Gruber
bfdd7db018 if block ends with a return statement drop this else and outdent its block 2018-05-01 23:22:21 -04:00
Kent Gruber
f128d3a035 if block ends with a return statement drop this else and outdent its block 2018-05-01 23:22:19 -04:00
Kent Gruber
6a69369491 if block ends with a return statement drop this else and outdent its block 2018-05-01 23:22:16 -04:00
Kent Gruber
c6bbbca93f if block ends with a return statement drop this else and outdent its block 2018-05-01 23:22:13 -04:00
Kent Gruber
5619127f93 if block ends with a return statement drop this else and outdent its block 2018-05-01 23:22:10 -04:00
Kent Gruber
c2db4b0d67 if block ends with a return statement drop this else and outdent its block 2018-05-01 23:22:06 -04:00
Kent Gruber
55614a7f28 if block ends with a return statement drop this else and outdent its block 2018-05-01 23:21:54 -04:00
Kent Gruber
343ad54b9a if block ends with a return statement drop this else and outdent its block 2018-05-01 23:21:52 -04:00
Kent Gruber
069ad23282 if block ends with a return statement drop this else and outdent its block 2018-05-01 23:21:49 -04:00
Kent Gruber
aee47df0a6 if block ends with a return statement drop this else and outdent its block 2018-05-01 23:21:46 -04:00
Kent Gruber
3f8226ff67 if block ends with a return statement drop this else and outdent its block 2018-05-01 23:21:42 -04:00
Kent Gruber
9505a149ce if block ends with a return statement drop this else and outdent its block 2018-05-01 23:15:05 -04:00
Kent Gruber
d65bee06ce if block ends with a return statement drop this else and outdent its block 2018-05-01 23:13:33 -04:00
Kent Gruber
024f978c3a golint says don't use underscores in Go names; var from_hw should be fromHw 2018-05-01 23:13:16 -04:00
Kent Gruber
7996fc40ff if block ends with a return statement drop this else and outdent its block 2018-05-01 23:10:55 -04:00
Kent Gruber
db18057fce if block ends with a return statement drop this else and outdent its block 2018-05-01 23:10:49 -04:00
Kent Gruber
f0408bc514 if block ends with a return statement drop this else and outdent its block 2018-05-01 23:09:09 -04:00
Kent Gruber
2522b89069 if block ends with a return statement drop this else and outdent its block 2018-05-01 23:08:11 -04:00
Kent Gruber
e02e13ab63 if block ends with a return statement drop this else and outdent its block 2018-05-01 23:06:58 -04:00
Kent Gruber
ea43018146 if block ends with a return statement drop this else and outdent its block 2018-05-01 23:06:11 -04:00
Kent Gruber
8193834f0f if block ends with a return statement drop this else and outdent its block 2018-05-01 23:05:26 -04:00
Kent Gruber
84864d5dc9 if block ends with a return statement drop this else and outdent its block
trying out some lint drive refactoring with golint :D
2018-05-01 23:02:28 -04:00
Kent Gruber
660f326806 add test for Clear 2018-05-01 22:40:40 -04:00
Kent Gruber
6911941fa2 add test for GetClient 2018-05-01 22:40:24 -04:00
Kent Gruber
07ba5e8d57 add test for Get 2018-05-01 22:40:03 -04:00
Kent Gruber
116ae12194 add test for AddIfNew 2018-05-01 22:39:47 -04:00
Kent Gruber
aa69d7499a add test for Remove 2018-05-01 22:39:32 -04:00
Kent Gruber
0024434944 add test for List 2018-05-01 22:39:19 -04:00
Kent Gruber
a9a37593a6 add test for Stations 2018-05-01 22:39:05 -04:00
Kent Gruber
36562bc7a9 add test for EachAccessPoint 2018-05-01 22:38:48 -04:00
Kent Gruber
dfa55d2a2e add test for MarshalJSON 2018-05-01 22:37:40 -04:00
Kent Gruber
74b387bf41 add test for NewWiFi 2018-05-01 22:37:20 -04:00
Kent Gruber
74c99d5ea1 add test for Dot11Chan2Freq 2018-05-01 22:37:03 -04:00
Kent Gruber
7e21ec9a97 add test for Dot11Freq2Chan 2018-05-01 22:36:45 -04:00
Kent Gruber
92395b6170 add helper function to build example WiFi struct
to be used in the rest of the tests, basically
2018-05-01 22:36:26 -04:00
Kent Gruber
7f34d0f6e7 start adding tests for wifi functions in network package
this is the base for all the tests
2018-05-01 22:35:54 -04:00
Simone Margaritelli
d91f8e0a75
Merge pull request #256 from picatz/test-network-oui
Add basic network oui test
2018-05-01 21:56:37 +02:00
Kent Gruber
29ec4edc63 add test for OuiLookup 2018-05-01 15:47:33 -04:00
Kent Gruber
90676d0289 add basic oui variable check
should contain information for the known organizational unique
identifiers
2018-05-01 15:47:05 -04:00
Kent Gruber
c71113b321 start adding tests for oui related functions in the network package
this is the base for the test
2018-05-01 15:45:43 -04:00
Simone Margaritelli
7c58d18157
Merge pull request #255 from picatz/test-network-lan
add tests for lan related functions in network package
2018-05-01 21:27:20 +02:00
Kent Gruber
d3c8afb3fb add test for shouldIgnore 2018-05-01 15:04:55 -04:00
Kent Gruber
d641fbf5c3 add test for GetAlias 2018-05-01 15:03:56 -04:00
Kent Gruber
65b28e028f add test for AddIfNew 2018-05-01 15:03:42 -04:00
Kent Gruber
dcc7ca2cbd add test for GetByIp
possible TODO: rename GetByIp to GetByIP like golint says to do?
2018-05-01 15:03:20 -04:00