From 5c63c20390c9345c0e93def30c2bf10e68570698 Mon Sep 17 00:00:00 2001 From: jregan Date: Fri, 25 Oct 2019 10:29:48 -0700 Subject: [PATCH] Fix some nits. --- docs/plugins/builtins.md | 2 +- hacks/crawl/crawler/crawler_test.go | 2 +- hacks/crawl/crawler/github/split_search_ranges_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/plugins/builtins.md b/docs/plugins/builtins.md index 014416ee7..c4264ff62 100644 --- a/docs/plugins/builtins.md +++ b/docs/plugins/builtins.md @@ -36,7 +36,7 @@ complete plugin argument specification. [types.GeneratorOptions]: ../../api/types/generatoroptions.go [types.SecretArgs]: ../../api/types/secretargs.go [types.ConfigMapArgs]: ../../api/types/configmapargs.go -[config.FieldSpec]: ../../api/plugins/builtinconfig/fieldspec.go +[config.FieldSpec]: ../../api/types/fieldspec.go [types.ObjectMeta]: ../../api/types/objectmeta.go [types.Selector]: ../../api/types/selector.go [types.Replica]: ../../api/types/replica.go diff --git a/hacks/crawl/crawler/crawler_test.go b/hacks/crawl/crawler/crawler_test.go index ea9cc57b0..ba22eff74 100644 --- a/hacks/crawl/crawler/crawler_test.go +++ b/hacks/crawl/crawler/crawler_test.go @@ -339,7 +339,7 @@ resources: }, nil }, func(d CrawledDocument, cr Crawler) error { - visited[ID()]++ + visited[d.ID()]++ return nil }, ) diff --git a/hacks/crawl/crawler/github/split_search_ranges_test.go b/hacks/crawl/crawler/github/split_search_ranges_test.go index 3102145e2..c175486e6 100644 --- a/hacks/crawl/crawler/github/split_search_ranges_test.go +++ b/hacks/crawl/crawler/github/split_search_ranges_test.go @@ -20,7 +20,7 @@ func (c testCachedSearch) CountResults(upperBound uint64) (uint64, error) { } func (c testCachedSearch) RequestString(filesize rangeFormatter) string { - return RangeString() + return filesize.RangeString() } // TODO(damienr74) make tests easier to write.. I'm thinking I can make the test