Created
October 18, 2017 15:41
-
-
Save penguwin/87d1d5ecd46bde755f59b751249b1e4b to your computer and use it in GitHub Desktop.
Openweathermap test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
penguwin@dekadent ~/code/golang/src/github.com/penguwin/openweathermap tests go test -v [17:36:37] | |
=== RUN TestRetrieveIcon | |
--- PASS: TestRetrieveIcon (0.11s) | |
=== RUN TestValidLanguageCode | |
--- PASS: TestValidLanguageCode (0.00s) | |
current_test.go:38: received expected bad code | |
=== RUN TestNewCurrent | |
=== RUN TestNewCurrentWithCustomHttpClient | |
--- PASS: TestNewCurrentWithCustomHttpClient (0.00s) | |
=== RUN TestNewCurrentWithInvalidOptions | |
--- PASS: TestNewCurrentWithInvalidOptions (0.00s) | |
current_test.go:105: Received expected invalid option error. message: invalid option | |
current_test.go:105: Received expected invalid option error. message: invalid option | |
current_test.go:105: Received expected invalid option error. message: invalid option | |
current_test.go:105: Received expected invalid option error. message: invalid option | |
=== RUN TestNewCurrentWithInvalidHttpClient | |
--- PASS: TestNewCurrentWithInvalidHttpClient (0.00s) | |
current_test.go:121: Received expected bad client error. message: invalid http client | |
=== RUN TestCurrentByName | |
=== RUN TestCurrentByCoordinates | |
=== RUN TestCurrentByID | |
=== RUN TestCurrentByZip | |
--- PASS: TestCurrentByZip (0.07s) | |
=== RUN TestCurrentByArea | |
--- PASS: TestCurrentByArea (0.00s) | |
=== RUN TestNewForecast | |
=== RUN TestNewForecastWithCustomHttpClient | |
--- PASS: TestNewForecastWithCustomHttpClient (0.00s) | |
=== RUN TestNewForecastWithInvalidOptions | |
--- PASS: TestNewForecastWithInvalidOptions (0.00s) | |
forecast_test.go:89: Received expected invalid option error. message: invalid option | |
forecast_test.go:89: Received expected invalid option error. message: invalid option | |
forecast_test.go:89: Received expected invalid option error. message: invalid option | |
forecast_test.go:89: Received expected invalid option error. message: invalid option | |
=== RUN TestNewForecastWithInvalidHttpClient | |
--- PASS: TestNewForecastWithInvalidHttpClient (0.00s) | |
forecast_test.go:105: Received expected bad client error. message: invalid http client | |
=== RUN TestDailyByName | |
=== RUN TestDailyByCoordinates | |
=== RUN TestDailyByID | |
=== RUN TestNewHistory | |
=== RUN TestNewHistoryWithCustomHttpClient | |
--- PASS: TestNewHistoryWithCustomHttpClient (0.00s) | |
=== RUN TestNewHistoryWithInvalidOptions | |
--- PASS: TestNewHistoryWithInvalidOptions (0.00s) | |
history_test.go:86: Received expected invalid option error. message: invalid option | |
history_test.go:86: Received expected invalid option error. message: invalid option | |
history_test.go:86: Received expected invalid option error. message: invalid option | |
history_test.go:86: Received expected invalid option error. message: invalid option | |
=== RUN TestNewHistoryWithInvalidHttpClient | |
--- PASS: TestNewHistoryWithInvalidHttpClient (0.00s) | |
history_test.go:102: Received expected bad client error. message: invalid http client | |
=== RUN TestHistoryByName | |
=== RUN TestHistoryByID | |
=== RUN TestHistoryByCoord | |
=== RUN TestValidDataUnit | |
--- PASS: TestValidDataUnit (0.00s) | |
=== RUN TestDataUnitValues | |
--- PASS: TestDataUnitValues (0.00s) | |
=== RUN TestCheckAPIKeyExists | |
--- PASS: TestCheckAPIKeyExists (0.00s) | |
=== RUN TestSetOptionsWithEmpty | |
--- PASS: TestSetOptionsWithEmpty (0.00s) | |
=== RUN TestNewPollution | |
--- PASS: TestNewPollution (0.00s) | |
=== RUN TestNewPollutionWithCustomHttpClient | |
--- PASS: TestNewPollutionWithCustomHttpClient (0.00s) | |
=== RUN TestNewPollutionWithInvalidOptions | |
--- PASS: TestNewPollutionWithInvalidOptions (0.00s) | |
pollution_test.go:58: Received expected invalid option error. message: invalid option | |
pollution_test.go:58: Received expected invalid option error. message: invalid option | |
pollution_test.go:58: Received expected invalid option error. message: invalid option | |
pollution_test.go:58: Received expected invalid option error. message: invalid option | |
=== RUN TestNewPollutionWithInvalidHttpClient | |
--- PASS: TestNewPollutionWithInvalidHttpClient (0.00s) | |
pollution_test.go:74: Received expected bad client error. message: invalid http client | |
=== RUN TestValidAlias | |
=== RUN TestPollutionByParams | |
=== RUN TestValidateStationDataParameter | |
=== RUN TestConvertToURLValues | |
=== RUN TestSendStationData | |
--- PASS: TestSendStationData (0.00s) | |
=== RUN TestNewUV | |
--- PASS: TestNewUV (0.00s) | |
=== RUN TestNewUVWithCustomHttpClient | |
--- PASS: TestNewUVWithCustomHttpClient (0.00s) | |
=== RUN TestNewUVWithInvalidOptions | |
--- PASS: TestNewUVWithInvalidOptions (0.00s) | |
uv_test.go:63: Received expected invalid option error. message: invalid option | |
uv_test.go:63: Received expected invalid option error. message: invalid option | |
uv_test.go:63: Received expected invalid option error. message: invalid option | |
uv_test.go:63: Received expected invalid option error. message: invalid option | |
=== RUN TestNewUVWithInvalidHttpClient | |
--- PASS: TestNewUVWithInvalidHttpClient (0.00s) | |
uv_test.go:79: Received expected bad client error. message: invalid http client | |
=== RUN TestCurrentUV | |
=== RUN TestHistoricalUV | |
=== RUN TestUVInformation | |
--- PASS: TestNewCurrent (0.00s) | |
current_test.go:48: Data unit: F | |
current_test.go:58: received expected bad language code error | |
current_test.go:48: Data unit: K | |
current_test.go:58: received expected bad language code error | |
current_test.go:48: Data unit: C | |
current_test.go:58: received expected bad language code error | |
--- PASS: TestHistoricalUV (0.00s) | |
--- PASS: TestConvertToURLValues (0.00s) | |
--- PASS: TestUVInformation (0.02s) | |
--- PASS: TestValidateStationDataParameter (0.00s) | |
--- PASS: TestCurrentUV (0.04s) | |
--- PASS: TestValidAlias (0.00s) | |
pollution_test.go:88: received expected failure | |
pollution_test.go:88: received expected failure | |
--- PASS: TestHistoryByCoord (0.03s) | |
--- PASS: TestPollutionByParams (0.05s) | |
--- PASS: TestDailyByCoordinates (0.09s) | |
--- PASS: TestNewHistory (0.00s) | |
history_test.go:30: Data unit: C | |
history_test.go:30: Data unit: F | |
history_test.go:30: Data unit: K | |
--- PASS: TestHistoryByName (0.04s) | |
--- PASS: TestCurrentByID (0.02s) | |
--- PASS: TestNewForecast (0.00s) | |
forecast_test.go:32: Data unit: C | |
forecast_test.go:32: Data unit: F | |
forecast_test.go:32: Data unit: K | |
--- PASS: TestDailyByID (0.12s) | |
--- PASS: TestHistoryByID (0.07s) | |
--- PASS: TestCurrentByCoordinates (0.02s) | |
--- PASS: TestDailyByName (0.07s) | |
--- PASS: TestCurrentByName (0.16s) | |
PASS | |
ok github.com/penguwin/openweathermap 0.465s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment