summary refs log tree commit diff stats
path: root/svc
diff options
context:
space:
mode:
Diffstat (limited to 'svc')
-rw-r--r--svc/conf_test.go22
1 files changed, 22 insertions, 0 deletions
diff --git a/svc/conf_test.go b/svc/conf_test.go
new file mode 100644
index 0000000..37e64a6
--- /dev/null
+++ b/svc/conf_test.go
@@ -0,0 +1,22 @@
+package svc
+
+import (
+	"reflect"
+	"testing"
+)
+
+func Test_initConfig(t *testing.T) {
+	t.Run("Testing Configuration Initialization", func(t *testing.T) {
+
+		initConfig()
+		confObj.Mu.RLock()
+		cnf := reflect.Indirect(reflect.ValueOf(confObj))
+		confObj.Mu.RUnlock()
+
+		for i := 0; i < cnf.NumField(); i++ {
+			if !cnf.Field(i).IsValid() {
+				t.Errorf("Uninitialized value: %v\n", cnf.Field(i).Type())
+			}
+		}
+	})
+}
0 00:56:35 +0000 Added key insert handler tests' href='/danisanti/profani-tty/commit/tests/test_keyhandlers.h?id=58239244bb703d770aa423d8fcea19522771ae0d'>58239244 ^
25d31101 ^

25d31101 ^

25d31101 ^
2cdbfc7e ^
25d31101 ^

















2cdbfc7e ^












c7d5379d ^
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47