<commit_before>package gmqconf

import (
	"fmt"
	"testing"
)

var configfile = "../test/configuration/example_gmq_config.json"

func TestInitServer(t *testing.T) {
	config, err := ParseConfiguration(configfile)
	if err != nil {
		t.Errorf("Error %T %s", err, err)
		return
	}
	server, err := InitServer(config)
	netaddr := server.Listener.Addr()
	fmt.Printf("Listner Network: %s", netaddr)
	if netaddr.Network() == "" {
		t.Error("Netowrk Listener not initiated")
		return
	}

}

func TestConfigureQueue(t *testing.T) {
	config, err := ParseConfiguration(configfile)
	if err != nil {
		t.Errorf("Error %T %s", err, err)
		return
	}
	_, err = ConfigureQueue(config)
	if err != nil {
		t.Errorf("Error %T %s", err, err)
		return
	}
}<commit_msg>Adjusting tests<commit_after>package gmqconf

import (
	"fmt"
	"testing"
)

var configfile = "../test/configuration/example_gmq_config.json"

func TestInitServer(t *testing.T) {
	config, err := ParseConfiguration(configfile)
	if err != nil {
		t.Errorf("Error %T %s", err, err)
		return
	}
	server, err := InitServer(config)
	if err != nil {
		t.Errorf("InitServer() Error: %v\n", err)
	}
	netaddr := server.Listener.Addr()
	fmt.Printf("Listner Network: %s", netaddr)
	if netaddr.Network() == "" {
		t.Error("Netowrk Listener not initiated")
		return
	}

}

func TestConfigureQueue(t *testing.T) {
	config, err := ParseConfiguration(configfile)
	if err != nil {
		t.Errorf("Error %T %s", err, err)
		return
	}
	_, err = ConfigureQueue(config)
	if err != nil {
		t.Errorf("Error %T %s", err, err)
		return
	}
}
{'fraction_non_alphanumeric': 0.15914948453608246, 'fraction_numerical': 0.0, 'mean_word_length': 4.108552631578948, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6251155', 'n_tokens_mistral': 596, 'n_tokens_neox': 577, 'n_words': 138}