[🤖] Add Unit-Tests
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m34s

This commit is contained in:
2026-04-27 10:46:08 +02:00
parent dad0e3240d
commit 02d6894ec6
116 changed files with 18795 additions and 1 deletions
+26
View File
@@ -0,0 +1,26 @@
package googleapi
import (
"git.blackforestbytes.com/BlackForestBytes/goext/tst"
"testing"
)
func TestNewGoogleClientReturnsNonNil(t *testing.T) {
auth := NewGoogleOAuth("cid", "csecret", "rtok")
gc := NewGoogleClient(auth)
tst.AssertTrue(t, gc != nil)
}
func TestNewGoogleClientWiresOAuth(t *testing.T) {
auth := NewGoogleOAuth("cid", "csecret", "rtok")
gc := NewGoogleClient(auth)
c, ok := gc.(*client)
tst.AssertTrue(t, ok)
tst.AssertTrue(t, c.oauth == auth)
}
func TestMailBodyZeroValue(t *testing.T) {
b := MailBody{}
tst.AssertEqual(t, b.Plain, "")
tst.AssertEqual(t, b.HTML, "")
}