summary refs log tree commit diff stats
path: root/init_test.go
blob: bffe036a97f5272041a206dd0d4af6677f3f029b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package main

import (
	"fmt"
	"log"
	"os"
)

var testport = fmt.Sprintf(":%v", confObj.Port)
var hasInit = false

func initTestConf() {
	if !hasInit {
		initConfig()
		tmpls = initTemplates()
		logToNull()
		hasInit = true
	}
}

func logToNull() {
	hush, err := os.Open("/dev/null")
	if err != nil {
		log.Printf("%v\n", err)
	}
	log.SetOutput(hush)
}
an>state); void contact_string_when_name_not_exists(void **state); void contact_string_when_default_resource(void **state); void contact_presence_offline(void **state); void contact_presence_uses_highest_priority(void **state); void contact_presence_chat_when_same_prioroty(void **state); void contact_presence_online_when_same_prioroty(void **state); void contact_presence_away_when_same_prioroty(void **state); void contact_presence_xa_when_same_prioroty(void **state); void contact_presence_dnd(void **state); void contact_subscribed_when_to(void **state); void contact_subscribed_when_both(void **state); void contact_not_subscribed_when_from(void **state); void contact_not_subscribed_when_no_subscription_value(void **state); void contact_not_available(void **state); void contact_not_available_when_highest_priority_away(void **state); void contact_not_available_when_highest_priority_xa(void **state); void contact_not_available_when_highest_priority_dnd(void **state); void contact_available_when_highest_priority_online(void **state); void contact_available_when_highest_priority_chat(void **state);