26 lines
364 B
Go
26 lines
364 B
Go
//go:build integration
|
|
|
|
package main
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
)
|
|
|
|
func TestGCal(t *testing.T) {
|
|
gcal := NewGCal()
|
|
|
|
if err := gcal.Login(context.Background()); err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
|
|
today, err := gcal.EventsToday(context.Background())
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
} else {
|
|
for i := range today {
|
|
t.Logf("[%d] %+v", i, today[i])
|
|
}
|
|
}
|
|
}
|