From beae97a8399e8adcf06109cd87e8011aee902975 Mon Sep 17 00:00:00 2001 From: Greg Goodwin Date: Sun, 3 Sep 2023 15:02:12 -0500 Subject: [PATCH] Random Commit --- .github/FUNDING.yml | 2 ++ stocks_test.go | 42 ------------------------------------------ 2 files changed, 2 insertions(+), 42 deletions(-) delete mode 100644 stocks_test.go diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 93eed2c..3e04216 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -2,3 +2,5 @@ ko_fi: gsg liberapay: ggoodwin +github: [ggoodwin] +custom: ['https://www.paypal.me/ggatx'] diff --git a/stocks_test.go b/stocks_test.go deleted file mode 100644 index 437091a..0000000 --- a/stocks_test.go +++ /dev/null @@ -1,42 +0,0 @@ -// Package Stocks is declaring that this Go file belongs to the `stocks` package, which can be -// imported and used in other Go files. -package stocks_test - -// TestGetPriceAndPercentage is a unit test function that tests the GetPriceAndPercentage function in the stocks package and -// checks if it returns expected values. -// func TestGetPriceAndPercentage(t *testing.T) { - -// // Call the function being tested -// price, percent, direction := stocks.GetPriceAndPercentage("AAPL") - -// // Assert the expected values -// if price == "" { -// t.Errorf("Expected a result from price, but got an empty result.") -// } -// if percent == "" { -// t.Errorf("Expected a result from percent, but got an empty result.") -// } -// if direction == "" { -// t.Errorf("Expected a result from direction, but got an empty result.") -// } -// } - -// TestGetFullDetails is a unit test function in Go that tests the GetFullDetails function by asserting expected -// values. -// func TestGetFullDetails(t *testing.T) { - -// // Call the function being tested -// result := stocks.GetFullDetails("AAPL") - -// // Assert the expected values -// if result == nil { -// t.Error("Expected a non-nil result, but got nil.") -// return -// } -// if result.Symbol != "AAPL" { -// t.Errorf("Expected symbol to be 'AAPL', but got '%s'.", result.Symbol) -// } -// if result.ShortName != "Apple Inc." { -// t.Errorf("Expected companyName to be 'Apple Inc.', but got '%s'.", result.ShortName) -// } -// }