mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
add tests
This commit is contained in:
parent
7a702cb473
commit
8ddd54fc8c
3 changed files with 55 additions and 0 deletions
18
cmd/main_test.go
Normal file
18
cmd/main_test.go
Normal 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)
|
||||
}
|
||||
|
||||
})
|
||||
}
|
18
pkg/commands/commands_test.go
Normal file
18
pkg/commands/commands_test.go
Normal 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)
|
||||
}
|
||||
|
||||
})
|
||||
}
|
19
pkg/handlers/handlers_test.go
Normal file
19
pkg/handlers/handlers_test.go
Normal 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)
|
||||
}
|
||||
|
||||
})
|
||||
}
|
Loading…
Reference in a new issue