GNUnet  0.11.x
Public Member Functions | Data Fields
gnunet_testing.Condition Class Reference
Inheritance diagram for gnunet_testing.Condition:
[legend]
Collaboration diagram for gnunet_testing.Condition:
[legend]

Public Member Functions

def __init__ (self)
 
def __init__ (self, type)
 
def check (self)
 
def evaluate (self, failed_only)
 

Data Fields

 fulfilled
 
 type
 

Detailed Description

Definition at line 108 of file gnunet_testing.py.

Constructor & Destructor Documentation

◆ __init__() [1/2]

def gnunet_testing.Condition.__init__ (   self)

Definition at line 109 of file gnunet_testing.py.

Referenced by gnunet_testing.Condition.__init__().

109  def __init__(self):
110  self.fulfilled = False
111  self.type = 'generic'
112 
def __init__(self, test, cfg_file)
Here is the caller graph for this function:

◆ __init__() [2/2]

def gnunet_testing.Condition.__init__ (   self,
  type 
)

Definition at line 113 of file gnunet_testing.py.

References gnunet_testing.Condition.__init__(), gnunet_testing.Check.fulfilled, gnunet_testing.Condition.fulfilled, DataRecord.type, RecentRequest.type, LookupMessage.type, GSF_CadetRequest.type, GNUNET_GNS_LookupWithTldRequest.type, GNUNET_DHT_ClientGetMessage.type, MetaCounter.type, MigrationReadyBlock.type, GNUNET_IDENTITY_PrivateKey.type, GNUNET_FS_Uri.type, Value.type, GNUNET_BLOCK_Group.type, GNUNET_DNSPARSER_Query.type, gnunet_testing.Condition.type, GetKeyMessage.type, GNUNET_DHT_GetHandle.type, GNUNET_IDENTITY_PublicKey.type, GNUNET_SETI_Option.type, PeerPutMessage.type, GNUNET_SETU_Option.type, ZeroAnonByType.type, GNUNET_RECLAIM_Attribute.type, ClientQueryRecord.type, CadetQueryMessage.type, PutContext.type, ProcessContext.type, Network.type, GSF_PendingRequestData.type, GNUNET_IDENTITY_Signature.type, GetMessage.type, ClientMonitorRecord.type, GNUNET_DHT_ClientResultMessage.type, CadetReplyMessage.type, ProcessResultClosure.type, GNUNET_DHT_MonitorHandle.type, GNUNET_RECLAIM_Credential.type, PeerResultMessage.type, GetZeroAnonymityMessage.type, GNUNET_DHT_ClientPutMessage.type, GNUNET_RECLAIM_Presentation.type, GNUNET_SET_Option.type, GNUNET_ATS_TEST_Operation.type, DataMessage.type, PeerGetMessage.type, GNUNET_GNSRECORD_Block.type, TrafficGenerator.type, GNUNET_DHT_MonitorPutMessage.type, HandleReplyClosure.type, PreferenceGenerator.type, GetContext.type, SearchMessage.type, GNUNET_MessageHeader.type, GNUNET_DHT_MonitorStartStopMessage.type, PropertyGenerator.type, GNUNET_CADET_RequestDropCadetMessage.type, GNUNET_DHT_MonitorGetMessage.type, PutMessage.type, ClientPutMessage.type, GNUNET_DHT_MonitorGetRespMessage.type, CadetChannel.type, HttpResponseHeader.type, GNUNET_DNSPARSER_Record.type, GNUNET_MQ_MessageHandler.type, GNUNET_TUN_DnsQueryLine.type, GNUNET_TUN_DnsRecordLine.type, GNUNET_TUN_IcmpHeader.type, ProcessReplyClosure.type, ForwardReplyContext.type, TestExistClosure.type, and GNUNET_TESTBED_EventInformation.type.

113  def __init__(self, type):
114  self.fulfilled = False
115  self.type = type
116 
def __init__(self, test, cfg_file)
Here is the call graph for this function:

Member Function Documentation

◆ check()

def gnunet_testing.Condition.check (   self)

Definition at line 117 of file gnunet_testing.py.

117  def check(self):
118  return False
119 

◆ evaluate()

def gnunet_testing.Condition.evaluate (   self,
  failed_only 
)

Definition at line 120 of file gnunet_testing.py.

References gnunet_testing.Check.fulfilled, gnunet_testing.Condition.fulfilled, DataRecord.type, RecentRequest.type, LookupMessage.type, GSF_CadetRequest.type, GNUNET_GNS_LookupWithTldRequest.type, GNUNET_DHT_ClientGetMessage.type, MetaCounter.type, MigrationReadyBlock.type, GNUNET_IDENTITY_PrivateKey.type, GNUNET_FS_Uri.type, Value.type, GNUNET_BLOCK_Group.type, GNUNET_DNSPARSER_Query.type, gnunet_testing.Condition.type, GetKeyMessage.type, GNUNET_DHT_GetHandle.type, GNUNET_IDENTITY_PublicKey.type, GNUNET_SETI_Option.type, GNUNET_SETU_Option.type, ZeroAnonByType.type, PeerPutMessage.type, GNUNET_RECLAIM_Attribute.type, ClientQueryRecord.type, CadetQueryMessage.type, PutContext.type, ProcessContext.type, Network.type, GSF_PendingRequestData.type, GetMessage.type, GNUNET_IDENTITY_Signature.type, ClientMonitorRecord.type, GNUNET_DHT_ClientResultMessage.type, CadetReplyMessage.type, ProcessResultClosure.type, GNUNET_DHT_MonitorHandle.type, GNUNET_RECLAIM_Credential.type, PeerResultMessage.type, GetZeroAnonymityMessage.type, GNUNET_DHT_ClientPutMessage.type, GNUNET_RECLAIM_Presentation.type, GNUNET_SET_Option.type, GNUNET_ATS_TEST_Operation.type, DataMessage.type, PeerGetMessage.type, GNUNET_GNSRECORD_Block.type, TrafficGenerator.type, GNUNET_DHT_MonitorPutMessage.type, HandleReplyClosure.type, PreferenceGenerator.type, GetContext.type, SearchMessage.type, GNUNET_MessageHeader.type, GNUNET_DHT_MonitorStartStopMessage.type, PropertyGenerator.type, GNUNET_CADET_RequestDropCadetMessage.type, PutMessage.type, GNUNET_DHT_MonitorGetMessage.type, ClientPutMessage.type, GNUNET_DHT_MonitorGetRespMessage.type, CadetChannel.type, HttpResponseHeader.type, GNUNET_DNSPARSER_Record.type, GNUNET_MQ_MessageHandler.type, GNUNET_TUN_DnsQueryLine.type, GNUNET_TUN_DnsRecordLine.type, GNUNET_TUN_IcmpHeader.type, ProcessReplyClosure.type, ForwardReplyContext.type, TestExistClosure.type, and GNUNET_TESTBED_EventInformation.type.

120  def evaluate(self, failed_only):
121  if ((self.fulfilled == False) and (failed_only == True)):
122  logger.debug(
123  '%s condition for was %s', str(self.type), str(self.fulfilled)
124  )
125  elif (failed_only == False):
126  logger.debug(
127  '%s condition for was %s', str(self.type), str(self.fulfilled)
128  )
129  return self.fulfilled
130 
131 
static void evaluate(struct GNUNET_TIME_Relative duration_total)

Field Documentation

◆ fulfilled

gnunet_testing.Condition.fulfilled

◆ type

gnunet_testing.Condition.type

The documentation for this class was generated from the following file: