Skip to content
Snippets Groups Projects
restconf_transport_test.go 1.28 KiB
Newer Older
  • Learn to ignore specific revisions
  • Manuel Kieweg's avatar
    Manuel Kieweg committed
    package nucleus
    
    import (
    	"context"
    	"reflect"
    	"testing"
    )
    
    func TestRestconf_GetConfig(t *testing.T) {
    	tests := []struct {
    		name string
    		want interface{}
    	}{
    		// TODO: Add test cases.
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			rc := &Restconf{}
    			if got := rc.GetConfig(); !reflect.DeepEqual(got, tt.want) {
    				t.Errorf("GetConfig() = %v, want %v", got, tt.want)
    			}
    		})
    	}
    }
    
    func TestRestconf_SetConfig(t *testing.T) {
    	type args struct {
    		in0 interface{}
    	}
    	tests := []struct {
    		name    string
    		args    args
    		wantErr bool
    	}{
    		// TODO: Add test cases.
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			rc := &Restconf{}
    			if err := rc.SetConfig(tt.args.in0); (err != nil) != tt.wantErr {
    				t.Errorf("SetConfig() error = %v, wantErr %v", err, tt.wantErr)
    			}
    		})
    	}
    }
    
    func TestRestconf_Subscribe(t *testing.T) {
    	type args struct {
    		ctx    context.Context
    		params []string
    	}
    	tests := []struct {
    		name    string
    		args    args
    		wantErr bool
    	}{
    		// TODO: Add test cases.
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			rc := &Restconf{}
    			if err := rc.Subscribe(tt.args.ctx, tt.args.params...); (err != nil) != tt.wantErr {
    				t.Errorf("Subscribe() error = %v, wantErr %v", err, tt.wantErr)
    			}
    		})
    	}
    }