Commit graph

1613 commits

Author SHA1 Message Date
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
Kent Gruber
50ebf3e53a add test for Aliases 2018-05-01 15:00:00 -04:00
Kent Gruber
a3e173a847 add test for List 2018-05-01 14:59:41 -04:00
Kent Gruber
e9697e0659 add test for Get 2018-05-01 14:59:25 -04:00
Kent Gruber
29486e1bf7 add test for SetAliasFor 2018-05-01 14:59:09 -04:00
Kent Gruber
bb493de4c9 add test for MarshalJSON 2018-05-01 14:58:51 -04:00
Kent Gruber
ba47e82e77 add test for NewLAN 2018-05-01 14:58:30 -04:00
Kent Gruber
9c4a43062c start adding tests for lan related functions in network package
includes required imports and two helper functions to build reusable
fresh-starts to be used in functions
2018-05-01 14:57:51 -04:00
Simone Margaritelli
d129bb65cc
Merge pull request #254 from picatz/test-network-net
add test for FindInterface in network package
2018-05-01 19:35:25 +02:00
Kent Gruber
7bff3bba79 add test for FindInterface in network package 2018-05-01 12:41:21 -04:00
Simone Margaritelli
6b297d7e1f
Merge pull request #253 from picatz/test-network-net
Add two more tests for network net
2018-05-01 17:41:58 +02:00
Kent Gruber
dcd5001357 add basic matchByAddress test
checks both mac address and ip address cases
2018-05-01 11:01:31 -04:00
Kent Gruber
36fb416952 add basic findInterfaceByName test 2018-05-01 10:53:09 -04:00
Simone Margaritelli
b6b064a5ef
Merge pull request #252 from picatz/test-network-net
Add more tests for network net
2018-05-01 16:19:33 +02:00
Kent Gruber
3c920397b9 add basic buildEndpointFromInterface test 2018-05-01 10:07:13 -04:00
Kent Gruber
b188354c33 add basic ParseTargets test
Note: needs refactoring to include an actual alias map example. I was
unable to get this to work for the time being, but this test adds at
least some coverage.
2018-05-01 10:05:52 -04:00
Simone Margaritelli
0910c1ed0e
Merge pull request #251 from picatz/test-network-net
start adding tests for network net
2018-05-01 12:00:18 +02:00
Simone Margaritelli
5c3b6cf507
Merge pull request #250 from picatz/test-core-table
add simple tests for core table functions
2018-05-01 11:59:55 +02:00
Simone Margaritelli
fe7fb2e752
Merge pull request #249 from picatz/test-core-swag
add simple tests for core swag color functions
2018-05-01 11:59:35 +02:00
Simone Margaritelli
0bf981ba3b
Merge pull request #248 from picatz/test-core-banner
add simple core banner constants test
2018-05-01 11:59:11 +02:00
Simone Margaritelli
da5b6da44b
Merge pull request #247 from picatz/fix-core-test-exec
run head in core test with a file that doesn't exist to pass on macOS
2018-05-01 11:58:46 +02:00
Kent Gruber
9e59ca9bfe start adding tests for network net
* IsZeroMac
* IsBroadcastMac
* NormalizeMac
2018-04-30 22:42:02 -04:00
Kent Gruber
345422d1b8 remove accidental double test for Website 2018-04-30 21:22:24 -04:00
Kent Gruber
5d58ab24be add simple tests for core table functions
add simple tests for each of table functions in core
2018-04-30 21:07:24 -04:00
Kent Gruber
2d9e74ea46 add simple tests for core swag color functions
add simple tests for each of the color functions in core swag
2018-04-30 20:10:01 -04:00
Kent Gruber
274fd945b3 add simple core banner constants test
This commit adds a simple test to core for the banner constants.

Mainly a test to get started with building out more tests.

Yeah, I know it’s silly.
2018-04-30 16:35:03 -04:00
Kent Gruber
9ee7a504b4 run head in core test with a file that doesn't exist to pass on macOS
On a mac, the /proc file system doesn’t exist. To have this test pass,
I’ve written it in a way so that the command will fail like for the ps
command which will allow the test to pass on mac and linux.
2018-04-30 15:30:22 -04:00
evilsocket
480f0daa8d
misc: small fix or general refactoring i did not bother commenting 2018-04-30 16:21:57 +02:00
evilsocket
9f390a722f
new: added arp.spoof.internal boolean parameter (closes #242) 2018-04-30 15:44:16 +02:00
evilsocket
7197fb1f25
fixed a panic on net.sniff due to channel being closed if reading from a pcap (fixes #246) 2018-04-30 14:57:32 +02:00
evilsocket
4cd86f3fd0
wrote unit tests for session.Environment 2018-04-30 14:20:34 +02:00
Simone Margaritelli
64f3a79be3
Merge pull request #243 from bmaia/master
new: implemented tcp.tunnel option for tcp.proxy module (closes #238)
2018-04-27 13:57:55 +02:00
bmaia
d2901fddf0 new: implemented tcp.tunnel option for tcp.proxy module (closes #238) 2018-04-27 00:32:39 +02:00
evilsocket
ae0afc54b5
fixed a bug which caused a cidr being parsed as an ip and eventually a panic (fixes #241) 2018-04-26 19:33:05 +02:00
evilsocket
735d074cd8
more unit tests 2018-04-26 15:16:49 +02:00
evilsocket
5a60e8897e
misc: small fix or general refactoring i did not bother commenting 2018-04-26 14:59:29 +02:00
evilsocket
b62948c160
misc: small fix or general refactoring i did not bother commenting 2018-04-26 14:57:45 +02:00
evilsocket
cd6fcbf4be
started the long adventure of unit testing bettercap 2018-04-26 14:43:25 +02:00
evilsocket
889ef0cbe0
misc: small fix or general refactoring i did not bother commenting 2018-04-26 13:01:57 +02:00
evilsocket
43a805870a
misc: small fix or general refactoring i did not bother commenting 2018-04-26 12:55:34 +02:00
evilsocket
9326a0dd4e
misc: small fix or general refactoring i did not bother commenting 2018-04-26 12:49:46 +02:00
evilsocket
57a37ac104
typos 2018-04-26 12:44:26 +02:00
evilsocket
b8d8c459c8
misc: small fix or general refactoring i did not bother commenting 2018-04-26 12:43:13 +02:00
evilsocket
557d7dbe17
completed lint driven refactoring 2018-04-26 12:41:18 +02:00
evilsocket
e383e4d9b1
... and more ... 2018-04-26 12:29:59 +02:00
evilsocket
60e8f83b2b
misc: small fix or general refactoring i did not bother commenting 2018-04-26 12:27:36 +02:00
evilsocket
813ae0a5e9
and more 2018-04-26 12:25:35 +02:00