From a1b8868600e1aad77701fa69aec904eba1d6df25 Mon Sep 17 00:00:00 2001 From: Danny Date: Tue, 2 Aug 2022 12:49:21 -0400 Subject: [PATCH] Removal of internal Contains methods (#462) Removal of internal `contains`methods --- .../exchange/exchange_data_collection_test.go | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/internal/connector/exchange/exchange_data_collection_test.go b/src/internal/connector/exchange/exchange_data_collection_test.go index 2f09e3d06..ced8be4c1 100644 --- a/src/internal/connector/exchange/exchange_data_collection_test.go +++ b/src/internal/connector/exchange/exchange_data_collection_test.go @@ -12,15 +12,6 @@ type ExchangeDataCollectionSuite struct { suite.Suite } -func contains(elems []string, value string) bool { - for _, s := range elems { - if value == s { - return true - } - } - return false -} - func TestExchangeDataCollectionSuite(t *testing.T) { suite.Run(t, new(ExchangeDataCollectionSuite)) } @@ -64,9 +55,9 @@ func (suite *ExchangeDataCollectionSuite) TestExchangeDataCollection_NewExchange fullPath: []string{"Directory", "File", "task"}, } suite.Equal(name, edc.user) - suite.True(contains(edc.FullPath(), "Directory")) - suite.True(contains(edc.FullPath(), "File")) - suite.True(contains(edc.FullPath(), "task")) + suite.Contains(edc.FullPath(), "Directory") + suite.Contains(edc.FullPath(), "File") + suite.Contains(edc.FullPath(), "task") } func (suite *ExchangeDataCollectionSuite) TestExchangeCollection_AddJob() {