From 5ab02a0655163a69d643172556bda2b05c676e44 Mon Sep 17 00:00:00 2001 From: Ryan Brady Date: Mon, 9 Feb 2015 20:28:33 -0500 Subject: [PATCH] Move API key into yaml --- coverage/coverage_report.html | 2 +- local.yml.example | 3 ++- main_test.go | 3 +-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/coverage/coverage_report.html b/coverage/coverage_report.html index 72768a0..15de8cb 100644 --- a/coverage/coverage_report.html +++ b/coverage/coverage_report.html @@ -128,7 +128,7 @@
Coverage Report
-
Generated on 09 Feb 15 20:17 -0500 with gocov-html
Package Overview: github.com/ryanbradynd05/go-tmdb 100.00%

This is a coverage report created after analysis of the github.com/ryanbradynd05/go-tmdb package. It +

Generated on 09 Feb 15 20:28 -0500 with gocov-html
Package Overview: github.com/ryanbradynd05/go-tmdb 100.00%

This is a coverage report created after analysis of the github.com/ryanbradynd05/go-tmdb package. It has been generated with the following command:

gocov test github.com/ryanbradynd05/go-tmdb | gocov-html

Here are the stats. Please select a function name to view its implementation and see what's left for testing.

diff --git a/local.yml.example b/local.yml.example index c09cc5c..ca638db 100644 --- a/local.yml.example +++ b/local.yml.example @@ -3,4 +3,5 @@ user: "" pw: "" session: "" guestSession: "" -accountID: 0 \ No newline at end of file +accountID: 0 +testKey: "" \ No newline at end of file diff --git a/main_test.go b/main_test.go index 8f082a1..3698305 100644 --- a/main_test.go +++ b/main_test.go @@ -10,8 +10,6 @@ import ( "testing" ) -const testKey string = "b12bd26ee15e6972f2f4c03363b74fa2" - func Test(t *testing.T) { TestingT(t) } type TmdbSuite struct { @@ -38,6 +36,7 @@ func (s *TmdbSuite) SetUpSuite(c *C) { s.guestSession, _ = config.Get("guestSession") accountID, _ := config.Get("accountID") s.accountID, _ = strconv.Atoi(accountID) + testKey, _ := config.Get("testKey") s.tmdb = Init(testKey) }
TMDb.SearchTv(...)github.com/ryanbradynd05/go-tmdb/search.go100.00%7/7
TMDb.SearchKeyword(...)github.com/ryanbradynd05/go-tmdb/search.go100.00%7/7