evilsocket
5041267be9
fixed net.FindGateway if there's a VPN interface active
2018-05-03 13:03:52 +02:00
Simone Margaritelli
5328ced392
Revert "Minor refactors using golint"
2018-05-03 12:31:42 +02:00
Kent Gruber
db23b34b85
change type Alaises to Aliases
...
one day I will learn how to spell
2018-05-02 14:24:47 -04:00
Kent Gruber
871bbde89f
make coherent lan test due to changes in aliases
...
messing with the Aliases test seems to cause issues for the lan test,
this fixes the error
2018-05-02 14:08:57 -04:00
Kent Gruber
0b55b645b1
add test for Find function
2018-05-02 13:58:42 -04:00
Kent Gruber
b387ed86e6
add test for Set function
2018-05-02 13:58:27 -04:00
Kent Gruber
e751ecf6a0
add test for Get function
2018-05-02 13:57:39 -04:00
Kent Gruber
383aa509c2
add test for Save function
2018-05-02 13:57:19 -04:00
Kent Gruber
aab5018de8
add test for saveUnlocked function
2018-05-02 13:57:03 -04:00
Kent Gruber
b91a6b51b3
add test for LoadAliases function
2018-05-02 13:56:44 -04:00
Kent Gruber
7180f6524e
add buildExampleAlaises helper function
...
to be used later
2018-05-02 13:56:09 -04:00
Kent Gruber
f3487ad6d2
start adding test for aliases related functions in network package
...
this is the base for the rest of the tests
2018-05-02 13:55:36 -04:00
Kent Gruber
506c5722a8
loosen test for GetIntsWith function
...
getting weird stuff with this test… probably because I’m not
understanding it properly or something to write a coherent test for it.
2018-05-02 13:22:36 -04:00
Kent Gruber
7a6cf8f197
add test for Empty function
2018-05-02 13:20:38 -04:00
Kent Gruber
db7c2d0a74
add test for Each function
2018-05-02 13:18:52 -04:00
Kent Gruber
21c0fc43ca
add test for GetOr function
2018-05-02 13:18:30 -04:00
Kent Gruber
00d6100214
add test for SetInts function
2018-05-02 13:18:12 -04:00
Kent Gruber
b8a0b86282
add test for GetIntsWith function with documented TODO
...
I didn’t really understand this function entirely.
2018-05-02 13:17:46 -04:00
Kent Gruber
e4352e8a98
add test for Set function
2018-05-02 13:17:06 -04:00
Kent Gruber
ec3227a16f
add test for MarshalJSON function
2018-05-02 13:16:49 -04:00
Kent Gruber
889df698d1
add test for NewMeta function
2018-05-02 13:16:30 -04:00
Kent Gruber
d18491aff8
add buildExampleMeta helper function
...
to be used later in the rest of the tests
2018-05-02 13:15:45 -04:00
Kent Gruber
db8e2399b0
start adding test for meta related functions in network package
2018-05-02 13:15:24 -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
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
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
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
Kent Gruber
4b82e917c7
add test for EachHost
2018-05-01 15:02:30 -04:00
Kent Gruber
050eaaf6bc
add test for Has
2018-05-01 15:02:14 -04:00
Kent Gruber
effbf951b5
add TODO in test for Remove
...
adding a TODO to help remind myself to fix this later: the Remove
function seems to have an unnecessary argument called “ip” which is
never used.
To be fair, I guess I could’ve just wrote a test for this and changed
it later.
2018-05-01 15:01:58 -04:00
Kent Gruber
d94532c473
add test for WasMissed
2018-05-01 15:00:17 -04:00