summaryrefslogtreecommitdiffstats
path: root/nws/nws_test.go
diff options
context:
space:
mode:
authorsiddharth ravikumar <s@ricketyspace.net>2022-05-29 11:51:47 -0400
committersiddharth ravikumar <s@ricketyspace.net>2022-05-29 11:51:47 -0400
commit7bcf80febb53f2e28c9f54fd4aa9cc0c690f5926 (patch)
treecd62335957de7514809ef90db4299a42c39c0e5b /nws/nws_test.go
parent797643641183718e49f4f2e4006f598d745bc5ce (diff)
nws: remove "NWS" from types
Also rename: - `Forecast` function to `GetForecast`. - `ForecastHourly` function to `GetForecastHourly`.
Diffstat (limited to 'nws/nws_test.go')
-rw-r--r--nws/nws_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/nws/nws_test.go b/nws/nws_test.go
index 9dcd53e..ffa05c8 100644
--- a/nws/nws_test.go
+++ b/nws/nws_test.go
@@ -42,7 +42,7 @@ func TestPoints(t *testing.T) {
}
}
-func TestForecast(t *testing.T) {
+func TestGetForecast(t *testing.T) {
// Get point.
np, err := Points(41.115, -83.177)
if err != nil {
@@ -51,7 +51,7 @@ func TestForecast(t *testing.T) {
}
// Get forecast.
- fc, err := Forecast(np)
+ fc, err := GetForecast(np)
if err != nil {
t.Errorf("error: %v", err)
return
@@ -96,7 +96,7 @@ func TestForecast(t *testing.T) {
}
}
-func TestForecastHourly(t *testing.T) {
+func TestGetForecastHourly(t *testing.T) {
// Get point.
np, err := Points(41.115, -83.177)
if err != nil {
@@ -105,7 +105,7 @@ func TestForecastHourly(t *testing.T) {
}
// Get forecast hourly.
- fc, err := ForecastHourly(np)
+ fc, err := GetForecastHourly(np)
if err != nil {
t.Errorf("error: %v", err)
return