Skip to content
Snippets Groups Projects
controller_test.go 2.15 KiB
Newer Older
  • Learn to ignore specific revisions
  • package nucleus
    
    
    import (
    	"code.fbi.h-da.de/cocsn/gosdn/database"
    	"github.com/google/uuid"
    	"testing"
    )
    
    func TestCore_CreateSouthboundInterfaces(t *testing.T) {
    	type fields struct {
    		southboundInterfaces    map[string]SouthboundInterface
    		principalNetworkDomains map[uuid.UUID]PrincipalNetworkDomain
    		database                database.Database
    		IsRunning               chan bool
    	}
    	tests := []struct {
    		name   string
    		fields fields
    	}{
    		// TODO: Add test cases.
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			_ = &Core{
    				southboundInterfaces:    tt.fields.southboundInterfaces,
    				principalNetworkDomains: tt.fields.principalNetworkDomains,
    				database:                tt.fields.database,
    				IsRunning:               tt.fields.IsRunning,
    			}
    		})
    	}
    }
    
    func TestCore_Initialize(t *testing.T) {
    	type fields struct {
    		southboundInterfaces    map[string]SouthboundInterface
    		principalNetworkDomains map[uuid.UUID]PrincipalNetworkDomain
    		database                database.Database
    		IsRunning               chan bool
    	}
    	type args struct {
    		IsRunningChannel chan bool
    	}
    	tests := []struct {
    		name   string
    		fields fields
    		args   args
    	}{
    		// TODO: Add test cases.
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			_ = &Core{
    				southboundInterfaces:    tt.fields.southboundInterfaces,
    				principalNetworkDomains: tt.fields.principalNetworkDomains,
    				database:                tt.fields.database,
    				IsRunning:               tt.fields.IsRunning,
    			}
    		})
    	}
    }
    
    func TestCore_Shutdown(t *testing.T) {
    	type fields struct {
    		southboundInterfaces    map[string]SouthboundInterface
    		principalNetworkDomains map[uuid.UUID]PrincipalNetworkDomain
    		database                database.Database
    		IsRunning               chan bool
    	}
    	tests := []struct {
    		name   string
    		fields fields
    	}{
    		// TODO: Add test cases.
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			_ = &Core{
    				southboundInterfaces:    tt.fields.southboundInterfaces,
    				principalNetworkDomains: tt.fields.principalNetworkDomains,
    				database:                tt.fields.database,
    				IsRunning:               tt.fields.IsRunning,
    			}
    		})
    	}
    }