Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
goSDN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
danet
goSDN
Commits
359c02a5
Commit
359c02a5
authored
4 years ago
by
Manuel Kieweg
Browse files
Options
Downloads
Patches
Plain Diff
Tests for GnmiTransport implementation
parent
81b0c1a5
No related branches found
No related tags found
2 merge requests
!101
Resolve "Increase test coverage"
,
!90
Develop
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
nucleus/gnmi_transport.go
+5
-2
5 additions, 2 deletions
nucleus/gnmi_transport.go
with
5 additions
and
2 deletions
nucleus/gnmi_transport.go
+
5
−
2
View file @
359c02a5
...
@@ -14,10 +14,13 @@ import (
...
@@ -14,10 +14,13 @@ import (
"time"
"time"
)
)
var
tapProto
bool
func
init
()
{
func
init
()
{
// tapProto taps get responses and requests to binary file
// tapProto taps gpb.getResponse and gpb.Getrequests
// to binary file
// CAUTION only set true if you know what you do
// CAUTION only set true if you know what you do
tapProto
=
tru
e
tapProto
=
fals
e
}
}
func
NewGnmiTransport
(
config
*
gnmi
.
Config
)
(
*
Gnmi
,
error
)
{
func
NewGnmiTransport
(
config
*
gnmi
.
Config
)
(
*
Gnmi
,
error
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment