MCPcopy Create free account
hub / github.com/andreikop/python-ws-discovery / isScopeInList

Function isScopeInList

wsdiscovery/util.py:195–199  ·  view source on GitHub ↗
(scope, scopes)

Source from the content-addressed store, hash-verified

193
194
195def isScopeInList(scope, scopes):
196 for entry in scopes:
197 if matchScope(scope.getValue(), entry.getValue(), scope.getMatchBy()):
198 return True
199 return False
200
201
202def matchesFilter(service, types, scopes):

Callers 1

matchesFilterFunction · 0.85

Calls 3

matchScopeFunction · 0.85
getValueMethod · 0.80
getMatchByMethod · 0.80

Tested by

no test coverage detected