add tests

This commit is contained in:
lyx0 2021-10-28 23:12:40 +02:00
parent 7a702cb473
commit 8ddd54fc8c
3 changed files with 55 additions and 0 deletions

18
cmd/main_test.go Normal file
View file

@ -0,0 +1,18 @@
package main
import "testing"
func TestMain(t *testing.T) {
t.Run("main package test placeholder", func(t *testing.T) {
request := 1
response := 1
got := request
want := response
if got != want {
t.Errorf("got %q, want %q", got, want)
}
})
}

View file

@ -0,0 +1,18 @@
package commands
import "testing"
func TestCommands(t *testing.T) {
t.Run("commands package test placeholder", func(t *testing.T) {
request := 1
response := 1
got := request
want := response
if got != want {
t.Errorf("got %q, want %q", got, want)
}
})
}

View file

@ -0,0 +1,19 @@
package handlers
import "testing"
// Idk how to test this really we don't return anything
func TestHandlers(t *testing.T) {
t.Run("handlers package test placeholder", func(t *testing.T) {
request := 1
response := 1
got := request
want := response
if got != want {
t.Errorf("got %q, want %q", got, want)
}
})
}