2018-02-13 10:48:46 +01:00
|
|
|
package websites
|
|
|
|
|
|
|
|
import (
|
2018-02-13 16:16:23 +01:00
|
|
|
"github.com/measurement-kit/go-measurement-kit"
|
2018-02-13 10:48:46 +01:00
|
|
|
"github.com/openobservatory/gooni/nettests"
|
|
|
|
)
|
|
|
|
|
|
|
|
// WebConnectivity test implementation
|
|
|
|
type WebConnectivity struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
// Run starts the test
|
|
|
|
func (n WebConnectivity) Run(ctl *nettests.Controller) error {
|
2018-03-19 17:29:32 +01:00
|
|
|
nt := mk.NewNettest("WebConnectivity")
|
|
|
|
ctl.Init(nt)
|
2018-02-13 16:16:23 +01:00
|
|
|
return nt.Run()
|
2018-02-13 10:48:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Summary generates a summary for a test run
|
2018-02-13 16:16:23 +01:00
|
|
|
func (n WebConnectivity) Summary(tk map[string]interface{}) interface{} {
|
|
|
|
return nil
|
2018-02-13 10:48:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// LogSummary writes the summary to the standard output
|
|
|
|
func (n WebConnectivity) LogSummary(s string) error {
|
|
|
|
return nil
|
|
|
|
}
|