Lay out the structure of nettests

This commit is contained in:
Arturo Filastò
2018-02-13 11:48:46 +02:00
parent 6586166282
commit 7cf5bd2718
8 changed files with 126 additions and 5 deletions
+25
View File
@@ -0,0 +1,25 @@
package websites
import (
"github.com/openobservatory/gooni/internal/database"
"github.com/openobservatory/gooni/nettests"
)
// WebConnectivity test implementation
type WebConnectivity struct {
}
// Run starts the test
func (n WebConnectivity) Run(ctl *nettests.Controller) error {
return nil
}
// Summary generates a summary for a test run
func (n WebConnectivity) Summary(m *database.Measurement) string {
return ""
}
// LogSummary writes the summary to the standard output
func (n WebConnectivity) LogSummary(s string) error {
return nil
}