Skip to content

Commit

Permalink
added documentation for tests methods
Browse files Browse the repository at this point in the history
  • Loading branch information
fgschwan committed Oct 5, 2017
1 parent 478c6d6 commit 5d9de6e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bgp/bgp_api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ import (
"testing"
)

// TestToChan tests ability of ToChan(...) function to create wrapping function that wraps given channel and forwards
// all ReachableIPRoute data (given to the wrapping function by parameter) to the channel inside.
// Test doesn't check logging capabilities of wrapping function.
func TestToChan(t *testing.T) {
// prepare of tested instances/helper instances
assertThat := assert.New(t)
Expand Down
2 changes: 2 additions & 0 deletions bgp/gobgp/plugin_impl_gobgp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ const (

var flavor = &local.FlavorLocal{}

// TestGoBGPPluginInfoPassing tests gobgp plugin for the ability of retrieving of ReachableIPRoutes using BGP protocol and passing this information to its registered watchers.
// Test is also testing the ability of watch unregistering.
func TestGoBGPPluginInfoPassing(t *testing.T) {
// creating help variables
assertThat := assert.New(t)
Expand Down

0 comments on commit 5d9de6e

Please sign in to comment.