func (s *searchControllerTestSuite) verifySearchByKnownURLs(wi *workitem.WorkItem, host, searchQuery string) {
	result := s.searchByURL(host, searchQuery)
	assert.NotEmpty(s.T(), result.Data)
	assert.Equal(s.T(), wi.ID, *result.Data[0].ID)

	known := search.GetAllRegisteredURLs()
	require.NotNil(s.T(), known)
	assert.NotEmpty(s.T(), known)
	assert.Contains(s.T(), known[search.HostRegistrationKeyForListWI].URLRegex, host)
	assert.Contains(s.T(), known[search.HostRegistrationKeyForBoardWI].URLRegex, host)
}
// verifySearchByKnownURLs performs actual tests on search result and knownURL map
verifySearchByKnownURLs performs actual tests on search result and knownURL map
// verifySearchByKnownURLs performs actual tests on search result and knownURL map
func (s *searchControllerTestSuite) verifySearchByKnownURLs(wi *workitem.WorkItem, host, searchQuery string) {
	result := s.searchByURL(host, searchQuery)
	assert.NotEmpty(s.T(), result.Data)
	assert.Equal(s.T(), wi.ID, *result.Data[0].ID)
	known := search.GetAllRegisteredURLs()
	require.NotNil(s.T(), known)
	assert.NotEmpty(s.T(), known)
	assert.Contains(s.T(), known[search.HostRegistrationKeyForListWI].URLRegex, host)
	assert.Contains(s.T(), known[search.HostRegistrationKeyForBoardWI].URLRegex, host)
}
func ( s * searchControllerTestSuite ) verifySearchByKnownURLs ( wi * workitem . WorkItem , host , searchQuery string ) { result := s . searchByURL ( host , searchQuery ) assert . NotEmpty ( s . T ( ) , result . Data ) assert . Equal ( s . T ( ) , wi . ID , * result . Data [ 0 ] . ID ) known := search . GetAllRegisteredURLs ( ) require . NotNil ( s . T ( ) , known ) assert . NotEmpty ( s . T ( ) , known ) assert . Contains ( s . T ( ) , known [ search . HostRegistrationKeyForListWI ] . URLRegex , host ) assert . Contains ( s . T ( ) , known [ search . HostRegistrationKeyForBoardWI ] . URLRegex , host ) }
verifySearchByKnownURLs performs actual tests on search result and knownURL map
verifySearchByKnownURLs performs actual tests on search result and knownURL map