From 12080f04fb2121c1076a23cedc7e17e360da648d Mon Sep 17 00:00:00 2001 From: venomade Date: Mon, 16 Dec 2024 22:04:47 +0000 Subject: Improvements to README, DataDir, DEBUG and comments Expand README Remove Hardcoding of Data Directory Add DEBUG const Remove unnecesary comments --- main_test.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'main_test.go') diff --git a/main_test.go b/main_test.go index a9386d0..7e106fd 100644 --- a/main_test.go +++ b/main_test.go @@ -7,7 +7,10 @@ import ( ) func TestOAuth(t *testing.T) { - result := GetOAuth(clientID, "/home/venomade/.local/share/lifesigns/auth") + result, err := GetOAuth() + if err != nil { + t.Error(err) + } if result != "" { fmt.Println("OAuth: ", result) } else { @@ -17,7 +20,10 @@ func TestOAuth(t *testing.T) { func TestOAuthNoFile(t *testing.T) { os.Remove("/home/venomade/.local/share/lifesigns/auth") - result := GetOAuth(clientID, "/home/venomade/.local/share/lifesigns/auth") + result, err := GetOAuth() + if err != nil { + t.Error(err) + } if result != "" { fmt.Println("OAuth: ", result) } else { -- cgit 1.4.1-2-gfad0