Loading tdmbs/tdmbs.go +1 −1 Original line number Diff line number Diff line Loading @@ -55,6 +55,6 @@ func (s *Server) ScanForNetworkAdresses() ([]net.Addr, error) { return addrs, nil } func (s *Server) FindWithBroadcast() error { func (s *Server) FindWithBroadcast(addrs []net.Addr) error { return errors.New("not implemented") } tdmbs/tdmbs_test.go +12 −0 Original line number Diff line number Diff line Loading @@ -15,3 +15,15 @@ func TestFindLocalNetworks(t *testing.T) { t.Logf(" - %s", addr) } } func TestFindServer(t *testing.T) { s := New() addrs, err := s.ScanForNetworkAdresses() if err != nil { t.Fatalf("ScanForNetworkAdresses() failed with: %s", err) } if err := s.FindWithBroadcast(addrs); err != nil { t.Fatalf("FindWithBroadcast() failed with: %s", err) } } Loading
tdmbs/tdmbs.go +1 −1 Original line number Diff line number Diff line Loading @@ -55,6 +55,6 @@ func (s *Server) ScanForNetworkAdresses() ([]net.Addr, error) { return addrs, nil } func (s *Server) FindWithBroadcast() error { func (s *Server) FindWithBroadcast(addrs []net.Addr) error { return errors.New("not implemented") }
tdmbs/tdmbs_test.go +12 −0 Original line number Diff line number Diff line Loading @@ -15,3 +15,15 @@ func TestFindLocalNetworks(t *testing.T) { t.Logf(" - %s", addr) } } func TestFindServer(t *testing.T) { s := New() addrs, err := s.ScanForNetworkAdresses() if err != nil { t.Fatalf("ScanForNetworkAdresses() failed with: %s", err) } if err := s.FindWithBroadcast(addrs); err != nil { t.Fatalf("FindWithBroadcast() failed with: %s", err) } }