INNER CODE UNIT · Go

func

samsara/samsara · clients/go/client_test.go:17

func (p *PublisherMock) Post(events []Event) bool {
	return p.fakePost(events)
}

// ==== end mocks ====

func TestNewClient_DoesNotCreateClientWithBadConfigGiven(t *testing.T) {
	sets := []Config{
		{},
		NewConfig(),
	}

	for i, config := range sets {
		client, err := NewClient(config)

		if err == nil {
			t.Errorf("Set %d: Client init with incorrect config should return error. Got %+v", i, err)
		}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…