...

/

Testing the Port Scanning Functionality

Testing the Port Scanning Functionality

Implement the port scanning functionality.

Creating the scanHosts_test.go file

We create a file scanHosts_test.go for the tests. We define the package package scan_test so it only tests the exposed API, as we did with the hosts tests:

Access this course and 1400+ top-rated courses and projects.