Skip to content

Commit 5ab02a0

Browse files
committed
Move API key into yaml
1 parent 8df7d03 commit 5ab02a0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

coverage/coverage_report.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
</head>
129129
<body>
130130
<div id="doctitle">Coverage Report</div>
131-
<div id="about">Generated on 09 Feb 15 20:17 -0500 with <a href="https://github.com/matm/gocov-html">gocov-html</a></div><div id="pkg_github.com/ryanbradynd05/go-tmdb" class="funcname">Package Overview: github.com/ryanbradynd05/go-tmdb <span class="packageTotal">100.00%</span></div><p>This is a coverage report created after analysis of the <code>github.com/ryanbradynd05/go-tmdb</code> package. It
131+
<div id="about">Generated on 09 Feb 15 20:28 -0500 with <a href="https://github.com/matm/gocov-html">gocov-html</a></div><div id="pkg_github.com/ryanbradynd05/go-tmdb" class="funcname">Package Overview: github.com/ryanbradynd05/go-tmdb <span class="packageTotal">100.00%</span></div><p>This is a coverage report created after analysis of the <code>github.com/ryanbradynd05/go-tmdb</code> package. It
132132
has been generated with the following command:</p><pre class="cmd">gocov test github.com/ryanbradynd05/go-tmdb | gocov-html</pre> <p>Here are the stats. Please select a function name to view its implementation and see what's left for testing.</p><table class="overview">
133133
<tr id="s_fn_TMDb.SearchTv"><td><code><a href="#fn_TMDb.SearchTv">TMDb.SearchTv(...)</a></code></td><td><code>github.com/ryanbradynd05/go-tmdb/search.go</code></td><td class="percent"><code>100.00%</code></td><td class="linecount"><code>7/7</code></td></tr>
134134
<tr id="s_fn_TMDb.SearchKeyword"><td><code><a href="#fn_TMDb.SearchKeyword">TMDb.SearchKeyword(...)</a></code></td><td><code>github.com/ryanbradynd05/go-tmdb/search.go</code></td><td class="percent"><code>100.00%</code></td><td class="linecount"><code>7/7</code></td></tr>

local.yml.example

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ user: ""
33
pw: ""
44
session: ""
55
guestSession: ""
6-
accountID: 0
6+
accountID: 0
7+
testKey: ""

main_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import (
1010
"testing"
1111
)
1212

13-
const testKey string = "b12bd26ee15e6972f2f4c03363b74fa2"
14-
1513
func Test(t *testing.T) { TestingT(t) }
1614

1715
type TmdbSuite struct {
@@ -38,6 +36,7 @@ func (s *TmdbSuite) SetUpSuite(c *C) {
3836
s.guestSession, _ = config.Get("guestSession")
3937
accountID, _ := config.Get("accountID")
4038
s.accountID, _ = strconv.Atoi(accountID)
39+
testKey, _ := config.Get("testKey")
4140
s.tmdb = Init(testKey)
4241
}
4342

0 commit comments

Comments
 (0)