func TestFunctionIsValid(t *testing.T) {
	t.Log("Testing configs")
	config := &Config{}
	if config.IsValid() {
		t.Errorf("Config without `shared_secret` and `dialect` can not be valid")
	}
	config = &Config{Dialect: "sth"}
	if config.IsValid() == true {
		t.Errorf("Config without `shared_secret` can not be valid")
	}
	config = &Config{SharedSecret: "ultrasafesecret"}
	if config.IsValid() == true {
		t.Errorf("Config without `dialect` can not be valid")
	}
}
Testing the configuration file is valid or not
package main
import (
	"os"
	"runtime"
	"testing"
)