github.com/mdaxf/iac@v0.0.0-20240519030858-58a061660378/initialize_test.go (about) 1 // Copyright 2023 IAC. All Rights Reserved. 2 3 // 4 5 // Licensed under the Apache License, Version 2.0 (the "License"); 6 7 // you may not use this file except in compliance with the License. 8 9 // You may obtain a copy of the License at 10 11 // 12 13 // http://www.apache.org/licenses/LICENSE-2.0 14 15 // 16 17 // Unless required by applicable law or agreed to in writing, software 18 19 // distributed under the License is distributed on an "AS IS" BASIS, 20 21 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 23 // See the License for the specific language governing permissions and 24 25 // limitations under the License. 26 27 package main 28 29 import ( 30 "testing" 31 ) 32 33 func Test_initializeDatabase(t *testing.T) { 34 tests := []struct { 35 name string 36 }{ 37 { 38 name: "Test Case 1", 39 }, 40 } 41 for _, tt := range tests { 42 t.Run(tt.name, func(t *testing.T) { 43 initializeDatabase() 44 }) 45 } 46 } 47 48 /* 49 func Test_initializecache(t *testing.T) { 50 tests := []struct { 51 name string 52 }{ 53 // TODO: Add test cases. 54 55 } 56 for _, tt := range tests { 57 t.Run(tt.name, func(t *testing.T) { 58 initializecache() 59 }) 60 } 61 } 62 63 func Test_initializeloger(t *testing.T) { 64 tests := []struct { 65 name string 66 }{ 67 // TODO: Add test cases. 68 } 69 for _, tt := range tests { 70 t.Run(tt.name, func(t *testing.T) { 71 initializeloger() 72 }) 73 } 74 } 75 76 func Test_initializeMqttClient(t *testing.T) { 77 tests := []struct { 78 name string 79 }{ 80 // TODO: Add test cases. 81 } 82 for _, tt := range tests { 83 t.Run(tt.name, func(t *testing.T) { 84 initializeMqttClient() 85 }) 86 } 87 } 88 89 func Test_initializeIACMessageBus(t *testing.T) { 90 tests := []struct { 91 name string 92 }{ 93 // TODO: Add test cases. 94 } 95 for _, tt := range tests { 96 t.Run(tt.name, func(t *testing.T) { 97 initializeIACMessageBus() 98 }) 99 } 100 } */