Makefile, server entry point prototype, compareFiles function + other minor changes
This commit is contained in:
parent
2efb8c4130
commit
c1ccb61346
10 changed files with 139 additions and 56 deletions
22
tests/cosync_test.go
Normal file
22
tests/cosync_test.go
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
package tests
|
||||
|
||||
import (
|
||||
"testing"
|
||||
"cosync/internal/client"
|
||||
"cosync/internal/server"
|
||||
)
|
||||
|
||||
func TestAll(t *testing.T) {
|
||||
TestClientServerCommunication(t)
|
||||
}
|
||||
|
||||
func TestClientServerCommunication(t *testing.T) {
|
||||
go client.Run()
|
||||
go server.Run()
|
||||
}
|
||||
|
||||
func TestConfigLoading(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestConfigCreation(t *testing.T) {
|
||||
}
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
package tests
|
||||
|
||||
import (
|
||||
// "testing"
|
||||
"cosync/internal/client"
|
||||
"cosync/internal/server"
|
||||
)
|
||||
|
||||
func TestAll() bool {
|
||||
TestClientServerCommunication()
|
||||
return false
|
||||
}
|
||||
|
||||
func TestClientServerCommunication() bool {
|
||||
go client.Run()
|
||||
go server.Run()
|
||||
return false
|
||||
}
|
||||
|
||||
func TestConfigLoading() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func TestConfigCreation() bool {
|
||||
return false
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue