-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #92 from ooni/develop
Release 3.0.0-rc.5
- Loading branch information
Showing
13 changed files
with
81 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/dist | ||
/ooni.cov | ||
/ooniprobe | ||
/coverage.cov | ||
/testdata/gotmp | ||
*.njson | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package nettests | ||
|
||
// Psiphon test implementation | ||
type Psiphon struct { | ||
} | ||
|
||
// Run starts the test | ||
func (h Psiphon) Run(ctl *Controller) error { | ||
builder, err := ctl.Ctx.Session.NewExperimentBuilder( | ||
"psiphon", | ||
) | ||
if err != nil { | ||
return err | ||
} | ||
return ctl.Run(builder, []string{""}) | ||
} | ||
|
||
// PsiphonTestKeys contains the test keys | ||
type PsiphonTestKeys struct { | ||
IsAnomaly bool `json:"-"` | ||
} | ||
|
||
// GetTestKeys generates a summary for a test run | ||
func (h Psiphon) GetTestKeys(tk map[string]interface{}) (interface{}, error) { | ||
return PsiphonTestKeys{ | ||
IsAnomaly: tk["failure"] != nil, | ||
}, nil | ||
} | ||
|
||
// LogSummary writes the summary to the standard output | ||
func (h Psiphon) LogSummary(s string) error { | ||
return nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters