MCPcopy Create free account
hub / github.com/SegataLab/lefse / funcIsValidStringList

Method funcIsValidStringList

lefsebiom/ValidateData.py:459–478  ·  view source on GitHub ↗

Validates a parameter as a list of string values. :param parameterValue: Value to be evaluated. :type Unknown :return Boolean: True indicates the parameter is a list of string values. :type Boolean

(parameterValue)

Source from the content-addressed store, hash-verified

457 #Tested 7
458 @staticmethod
459 def funcIsValidStringList(parameterValue):
460 """
461 Validates a parameter as a list of string values.
462
463 :param parameterValue: Value to be evaluated.
464 :type Unknown
465 :return Boolean: True indicates the parameter is a list of string values.
466 :type Boolean
467 """
468
469 #Check is valid list
470 if(not ValidateData.funcIsValidList(parameterValue)):
471 return False
472
473 #Check elements
474 listSize = len(parameterValue)
475 for i in range(0,listSize):
476 if(not ValidateData.funcIsValidString(parameterValue[i])):
477 return False
478 return True
479
480 #Tested 4
481 @staticmethod

Callers

nothing calls this directly

Calls 2

funcIsValidListMethod · 0.80
funcIsValidStringMethod · 0.80

Tested by

no test coverage detected