Skip to content
Snippets Groups Projects
southbound_test.go 930 B
Newer Older
  • Learn to ignore specific revisions
  • Manuel Kieweg's avatar
    Manuel Kieweg committed
    package nucleus
    
    import "testing"
    
    func TestOpenConfig_SbiIdentifier(t *testing.T) {
    	type fields struct {
    		transport Transport
    	}
    	tests := []struct {
    		name   string
    		fields fields
    		want   string
    	}{
    		{name: "default", want: "openconfig"},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			oc := &OpenConfig{
    				transport: tt.fields.transport,
    			}
    			if got := oc.SbiIdentifier(); got != tt.want {
    				t.Errorf("SbiIdentifier() = %v, want %v", got, tt.want)
    			}
    		})
    	}
    }
    
    func TestOpenConfig_OpenconfigInterfaces(t *testing.T) {
    	type fields struct {
    		transport Transport
    	}
    	type args struct {
    		device Device
    	}
    	tests := []struct {
    		name   string
    		fields fields
    		args   args
    	}{
    		// TODO: Add test cases.
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			oc := &OpenConfig{
    				transport: tt.fields.transport,
    			}
    			oc.OpenconfigInterfaces(tt.args.device)
    		})
    	}