From 53b150e6c93bed997e4c7fdb8d7d04564c4a3d02 Mon Sep 17 00:00:00 2001 From: Michael Grosser Date: Mon, 21 Jan 2019 11:06:18 -0800 Subject: [PATCH] mark all uncovered files so go-testcov ./... works --- format/format.go | 3 +++ gbytes/say_matcher.go | 2 ++ gexec/build.go | 2 ++ gexec/exit_matcher.go | 2 ++ gexec/prefixed_writer.go | 2 ++ gexec/session.go | 3 +++ ghttp/handlers.go | 2 ++ ghttp/test_server.go | 3 +++ gstruct/elements.go | 2 ++ gstruct/fields.go | 2 ++ gstruct/ignore.go | 2 ++ gstruct/keys.go | 2 ++ gstruct/pointer.go | 2 ++ internal/asyncassertion/async_assertion.go | 2 ++ matchers/assignable_to_type_of_matcher.go | 2 ++ matchers/be_a_directory.go | 2 ++ matchers/be_a_regular_file.go | 2 ++ matchers/be_an_existing_file.go | 2 ++ matchers/be_closed_matcher.go | 2 ++ matchers/be_empty_matcher.go | 2 ++ matchers/be_equivalent_to_matcher.go | 2 ++ matchers/be_false_matcher.go | 2 ++ matchers/be_identical_to.go | 2 ++ matchers/be_nil_matcher.go | 2 ++ matchers/be_numerically_matcher.go | 2 ++ matchers/be_sent_matcher.go | 2 ++ matchers/be_temporally_matcher.go | 2 ++ matchers/be_true_matcher.go | 2 ++ matchers/consist_of.go | 2 ++ matchers/contain_element_matcher.go | 2 ++ matchers/contain_substring_matcher.go | 2 ++ matchers/have_cap_matcher.go | 2 ++ matchers/have_key_matcher.go | 2 ++ matchers/have_key_with_value_matcher.go | 2 ++ matchers/have_occurred_matcher.go | 2 ++ matchers/receive_matcher.go | 2 ++ matchers/semi_structured_data_support.go | 2 ++ matchers/type_support.go | 3 +++ 38 files changed, 80 insertions(+) diff --git a/format/format.go b/format/format.go index b23a6ae0e..3a4ba8fb9 100644 --- a/format/format.go +++ b/format/format.go @@ -1,6 +1,9 @@ /* Gomega's format package pretty-prints objects. It explores input objects recursively and generates formatted, indented output with type information. */ + +// untested sections: 4 + package format import ( diff --git a/gbytes/say_matcher.go b/gbytes/say_matcher.go index 14317182b..c15ddbfc3 100644 --- a/gbytes/say_matcher.go +++ b/gbytes/say_matcher.go @@ -1,3 +1,5 @@ +// untested sections: 1 + package gbytes import ( diff --git a/gexec/build.go b/gexec/build.go index 869c1ead8..ce1574d46 100644 --- a/gexec/build.go +++ b/gexec/build.go @@ -1,3 +1,5 @@ +// untested sections: 5 + package gexec import ( diff --git a/gexec/exit_matcher.go b/gexec/exit_matcher.go index 98a354937..6e70de68d 100644 --- a/gexec/exit_matcher.go +++ b/gexec/exit_matcher.go @@ -1,3 +1,5 @@ +// untested sections: 2 + package gexec import ( diff --git a/gexec/prefixed_writer.go b/gexec/prefixed_writer.go index 05e695abc..ee3cf4072 100644 --- a/gexec/prefixed_writer.go +++ b/gexec/prefixed_writer.go @@ -1,3 +1,5 @@ +// untested sections: 1 + package gexec import ( diff --git a/gexec/session.go b/gexec/session.go index 5cb00ca65..6a09140fb 100644 --- a/gexec/session.go +++ b/gexec/session.go @@ -1,6 +1,9 @@ /* Package gexec provides support for testing external processes. */ + +// untested sections: 1 + package gexec import ( diff --git a/ghttp/handlers.go b/ghttp/handlers.go index 894eae6d4..64e612bdb 100644 --- a/ghttp/handlers.go +++ b/ghttp/handlers.go @@ -1,3 +1,5 @@ +// untested sections: 3 + package ghttp import ( diff --git a/ghttp/test_server.go b/ghttp/test_server.go index 77535f309..6524eb40b 100644 --- a/ghttp/test_server.go +++ b/ghttp/test_server.go @@ -103,6 +103,9 @@ A more comprehensive example is available at https://onsi.github.io/gomega/#_tes }) }) */ + +// untested sections: 5 + package ghttp import ( diff --git a/gstruct/elements.go b/gstruct/elements.go index 13bf5b895..30e3369e0 100644 --- a/gstruct/elements.go +++ b/gstruct/elements.go @@ -1,3 +1,5 @@ +// untested sections: 6 + package gstruct import ( diff --git a/gstruct/fields.go b/gstruct/fields.go index 154c1d480..c55c9ae63 100644 --- a/gstruct/fields.go +++ b/gstruct/fields.go @@ -1,3 +1,5 @@ +// untested sections: 10 + package gstruct import ( diff --git a/gstruct/ignore.go b/gstruct/ignore.go index 0365f32ad..4396573e4 100644 --- a/gstruct/ignore.go +++ b/gstruct/ignore.go @@ -1,3 +1,5 @@ +// untested sections: 2 + package gstruct import ( diff --git a/gstruct/keys.go b/gstruct/keys.go index d5549ff55..c86b486b2 100644 --- a/gstruct/keys.go +++ b/gstruct/keys.go @@ -1,3 +1,5 @@ +// untested sections: 9 + package gstruct import ( diff --git a/gstruct/pointer.go b/gstruct/pointer.go index 0a2f35de3..cc828a325 100644 --- a/gstruct/pointer.go +++ b/gstruct/pointer.go @@ -1,3 +1,5 @@ +// untested sections: 3 + package gstruct import ( diff --git a/internal/asyncassertion/async_assertion.go b/internal/asyncassertion/async_assertion.go index cdab233eb..a233e48c0 100644 --- a/internal/asyncassertion/async_assertion.go +++ b/internal/asyncassertion/async_assertion.go @@ -1,3 +1,5 @@ +// untested sections: 2 + package asyncassertion import ( diff --git a/matchers/assignable_to_type_of_matcher.go b/matchers/assignable_to_type_of_matcher.go index 51f8be6ae..be4839520 100644 --- a/matchers/assignable_to_type_of_matcher.go +++ b/matchers/assignable_to_type_of_matcher.go @@ -1,3 +1,5 @@ +// untested sections: 2 + package matchers import ( diff --git a/matchers/be_a_directory.go b/matchers/be_a_directory.go index 7b6975e41..acffc8570 100644 --- a/matchers/be_a_directory.go +++ b/matchers/be_a_directory.go @@ -1,3 +1,5 @@ +// untested sections: 5 + package matchers import ( diff --git a/matchers/be_a_regular_file.go b/matchers/be_a_regular_file.go index e239131fb..89441c800 100644 --- a/matchers/be_a_regular_file.go +++ b/matchers/be_a_regular_file.go @@ -1,3 +1,5 @@ +// untested sections: 5 + package matchers import ( diff --git a/matchers/be_an_existing_file.go b/matchers/be_an_existing_file.go index d42eba223..ec6506b00 100644 --- a/matchers/be_an_existing_file.go +++ b/matchers/be_an_existing_file.go @@ -1,3 +1,5 @@ +// untested sections: 3 + package matchers import ( diff --git a/matchers/be_closed_matcher.go b/matchers/be_closed_matcher.go index 80c9c8bb1..f13c24490 100644 --- a/matchers/be_closed_matcher.go +++ b/matchers/be_closed_matcher.go @@ -1,3 +1,5 @@ +// untested sections: 2 + package matchers import ( diff --git a/matchers/be_empty_matcher.go b/matchers/be_empty_matcher.go index 8b00311b0..527c1a1c1 100644 --- a/matchers/be_empty_matcher.go +++ b/matchers/be_empty_matcher.go @@ -1,3 +1,5 @@ +// untested sections: 2 + package matchers import ( diff --git a/matchers/be_equivalent_to_matcher.go b/matchers/be_equivalent_to_matcher.go index 97ab20a4e..263627f40 100644 --- a/matchers/be_equivalent_to_matcher.go +++ b/matchers/be_equivalent_to_matcher.go @@ -1,3 +1,5 @@ +// untested sections: 2 + package matchers import ( diff --git a/matchers/be_false_matcher.go b/matchers/be_false_matcher.go index 91d3b779e..e326c0157 100644 --- a/matchers/be_false_matcher.go +++ b/matchers/be_false_matcher.go @@ -1,3 +1,5 @@ +// untested sections: 2 + package matchers import ( diff --git a/matchers/be_identical_to.go b/matchers/be_identical_to.go index fdcda4d1f..631ce11e3 100644 --- a/matchers/be_identical_to.go +++ b/matchers/be_identical_to.go @@ -1,3 +1,5 @@ +// untested sections: 2 + package matchers import ( diff --git a/matchers/be_nil_matcher.go b/matchers/be_nil_matcher.go index 7ee84fe1b..551d99d74 100644 --- a/matchers/be_nil_matcher.go +++ b/matchers/be_nil_matcher.go @@ -1,3 +1,5 @@ +// untested sections: 2 + package matchers import "github.com/onsi/gomega/format" diff --git a/matchers/be_numerically_matcher.go b/matchers/be_numerically_matcher.go index 9f4f77eec..f72591a1a 100644 --- a/matchers/be_numerically_matcher.go +++ b/matchers/be_numerically_matcher.go @@ -1,3 +1,5 @@ +// untested sections: 4 + package matchers import ( diff --git a/matchers/be_sent_matcher.go b/matchers/be_sent_matcher.go index 302dd1a0a..cf582a3fc 100644 --- a/matchers/be_sent_matcher.go +++ b/matchers/be_sent_matcher.go @@ -1,3 +1,5 @@ +// untested sections: 3 + package matchers import ( diff --git a/matchers/be_temporally_matcher.go b/matchers/be_temporally_matcher.go index cb7c038ef..dec4db024 100644 --- a/matchers/be_temporally_matcher.go +++ b/matchers/be_temporally_matcher.go @@ -1,3 +1,5 @@ +// untested sections: 3 + package matchers import ( diff --git a/matchers/be_true_matcher.go b/matchers/be_true_matcher.go index ec57c5db4..60bc1e3fa 100644 --- a/matchers/be_true_matcher.go +++ b/matchers/be_true_matcher.go @@ -1,3 +1,5 @@ +// untested sections: 2 + package matchers import ( diff --git a/matchers/consist_of.go b/matchers/consist_of.go index 7b0e08868..cbbf61802 100644 --- a/matchers/consist_of.go +++ b/matchers/consist_of.go @@ -1,3 +1,5 @@ +// untested sections: 3 + package matchers import ( diff --git a/matchers/contain_element_matcher.go b/matchers/contain_element_matcher.go index f6515c81e..8d6c44c7a 100644 --- a/matchers/contain_element_matcher.go +++ b/matchers/contain_element_matcher.go @@ -1,3 +1,5 @@ +// untested sections: 2 + package matchers import ( diff --git a/matchers/contain_substring_matcher.go b/matchers/contain_substring_matcher.go index f8dc41e74..e725f8c27 100644 --- a/matchers/contain_substring_matcher.go +++ b/matchers/contain_substring_matcher.go @@ -1,3 +1,5 @@ +// untested sections: 2 + package matchers import ( diff --git a/matchers/have_cap_matcher.go b/matchers/have_cap_matcher.go index 7ace93dc3..9856752f1 100644 --- a/matchers/have_cap_matcher.go +++ b/matchers/have_cap_matcher.go @@ -1,3 +1,5 @@ +// untested sections: 2 + package matchers import ( diff --git a/matchers/have_key_matcher.go b/matchers/have_key_matcher.go index ea5b92336..00cffec70 100644 --- a/matchers/have_key_matcher.go +++ b/matchers/have_key_matcher.go @@ -1,3 +1,5 @@ +// untested sections: 6 + package matchers import ( diff --git a/matchers/have_key_with_value_matcher.go b/matchers/have_key_with_value_matcher.go index 06355b1e9..4c5916804 100644 --- a/matchers/have_key_with_value_matcher.go +++ b/matchers/have_key_with_value_matcher.go @@ -1,3 +1,5 @@ +// untested sections:10 + package matchers import ( diff --git a/matchers/have_occurred_matcher.go b/matchers/have_occurred_matcher.go index bef00ae21..5bcfdd2ad 100644 --- a/matchers/have_occurred_matcher.go +++ b/matchers/have_occurred_matcher.go @@ -1,3 +1,5 @@ +// untested sections: 2 + package matchers import ( diff --git a/matchers/receive_matcher.go b/matchers/receive_matcher.go index 2018a6128..1936a2ba5 100644 --- a/matchers/receive_matcher.go +++ b/matchers/receive_matcher.go @@ -1,3 +1,5 @@ +// untested sections: 3 + package matchers import ( diff --git a/matchers/semi_structured_data_support.go b/matchers/semi_structured_data_support.go index 639295684..1369c1e87 100644 --- a/matchers/semi_structured_data_support.go +++ b/matchers/semi_structured_data_support.go @@ -1,3 +1,5 @@ +// untested sections: 5 + package matchers import ( diff --git a/matchers/type_support.go b/matchers/type_support.go index 75afcd844..dced2419e 100644 --- a/matchers/type_support.go +++ b/matchers/type_support.go @@ -6,6 +6,9 @@ See the docs for Gomega for documentation on the matchers http://onsi.github.io/gomega/ */ + +// untested sections: 11 + package matchers import (