GNUnet  0.20.0
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.

109  def __init__(self):
110  self.fulfilled = False
111  self.type = 'generic'
112 

Referenced by gnunet_testing.Condition.__init__().

Here is the caller graph for this function:

◆ __init__() [2/2]

def gnunet_testing.Condition.__init__ (   self,
  type 
)

Reimplemented in gnunet_testing.FileExistCondition.

Definition at line 113 of file gnunet_testing.py.

113  def __init__(self, type):
114  self.fulfilled = False
115  self.type = type
116 

References gnunet_testing.Condition.__init__(), gnunet_testing.Check.fulfilled, gnunet_testing.Condition.fulfilled, gnunet_testing.FileExistCondition.fulfilled, gnunet_testing.StatisticsCondition.fulfilled, gnunet_testing.EqualStatisticsCondition.fulfilled, GNUNET_ATS_TEST_Operation.type, PreferenceGenerator.type, PropertyGenerator.type, Network.type, GNUNET_CADET_RequestDropCadetMessage.type, CadetChannel.type, GetContext.type, GetClosestContext.type, GetKeyMessage.type, GetMessage.type, GetZeroAnonymityMessage.type, DataMessage.type, DataRecord.type, Value.type, ZeroAnonByType.type, GNUNET_DHT_ClientGetMessage.type, GNUNET_DHT_ClientResultMessage.type, GNUNET_DHT_ClientPutMessage.type, GNUNET_DHT_MonitorPutMessage.type, GNUNET_DHT_MonitorStartStopMessage.type, GNUNET_DHT_MonitorGetMessage.type, GNUNET_DHT_MonitorGetRespMessage.type, GNUNET_DHT_GetHandle.type, GNUNET_DHT_MonitorHandle.type, ClientQueryRecord.type, ClientMonitorRecord.type, GetActionContext.type, PeerPutMessage.type, PeerResultMessage.type, PeerGetMessage.type, RecentRequest.type, SearchMessage.type, PutMessage.type, ClientPutMessage.type, GNUNET_FS_Uri.type, ProcessResultClosure.type, MetaCounter.type, GNUNET_SEARCH_MetadataPrinterInfo.type, CadetQueryMessage.type, CadetReplyMessage.type, GSF_CadetRequest.type, HandleReplyClosure.type, TestExistClosure.type, ProcessReplyClosure.type, GSF_PendingRequestData.type, MigrationReadyBlock.type, MetaItem.type, MetaDataEntry.type, LookupMessage.type, GNUNET_GNS_LookupWithTldRequest.type, HttpResponseHeader.type, GNUNET_BLOCK_Group.type, GNUNET_MessageHeader.type, GNUNET_DATACACHE_Block.type, GNUNET_DB_EventHeaderP.type, GNUNET_DNSPARSER_Query.type, GNUNET_DNSPARSER_Record.type, GNUNET_GNSRECORD_Block.type, GNUNET_IDENTITY_PrivateKey.type, GNUNET_IDENTITY_PublicKey.type, GNUNET_IDENTITY_Signature.type, GNUNET_MQ_MessageHandler.type, GNUNET_RECLAIM_Attribute.type, GNUNET_RECLAIM_Credential.type, GNUNET_RECLAIM_Presentation.type, GNUNET_SET_Option.type, GNUNET_SETI_Option.type, GNUNET_SETU_Option.type, GNUNET_TESTBED_EventInformation.type, GNUNET_TUN_DnsQueryLine.type, GNUNET_TUN_DnsRecordLine.type, GNUNET_TUN_IcmpHeader.type, gnunet_testing.Condition.type, gnunet_testing.FileExistCondition.type, gnunet_testing.StatisticsCondition.type, gnunet_testing.EqualStatisticsCondition.type, GNUNET_MESSENGER_Operation.type, AutoconfigContext.type, GNUNET_NAT_AutoHandle.type, GNUNET_NAT_AUTO_AutoconfigResultMessage.type, icmp_ttl_exceeded_header.type, icmp_echo_header.type, REGEX_INTERNAL_Automaton.type, PendingMessage.type, GNUNET_STATISTICS_GetHandle.type, ForwardedOperationContext.type, OverlayConnectContext.type, OperationContext.type, OperationQueue.type, TopologyContext.type, GNUNET_TESTBED_UnderlayLinkModel.type, QUIC_header.type, TransportClient.type, GNUNET_SERVER_MessageHandler.type, GNUNET_TRANSPORT_WLAN_Ieee8023Frame.type, GNUNET_BIO_WriteHandle.type, GNUNET_BIO_ReadHandle.type, and GNUNET_NETWORK_Handle.type.

Here is the call graph for this function:

Member Function Documentation

◆ check()

def gnunet_testing.Condition.check (   self)

Reimplemented in gnunet_testing.EqualStatisticsCondition, gnunet_testing.StatisticsCondition, and gnunet_testing.FileExistCondition.

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 
)

Reimplemented in gnunet_testing.EqualStatisticsCondition, gnunet_testing.StatisticsCondition, and gnunet_testing.FileExistCondition.

Definition at line 120 of file gnunet_testing.py.

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 int evaluate(void)
Write the ids and their according index in the given array to a file Unused.

References gnunet_testing.Check.fulfilled, gnunet_testing.Condition.fulfilled, gnunet_testing.FileExistCondition.fulfilled, gnunet_testing.StatisticsCondition.fulfilled, gnunet_testing.EqualStatisticsCondition.fulfilled, GNUNET_ATS_TEST_Operation.type, PreferenceGenerator.type, PropertyGenerator.type, Network.type, GNUNET_CADET_RequestDropCadetMessage.type, CadetChannel.type, GetContext.type, GetClosestContext.type, GetKeyMessage.type, GetMessage.type, GetZeroAnonymityMessage.type, DataMessage.type, DataRecord.type, Value.type, ZeroAnonByType.type, GNUNET_DHT_ClientGetMessage.type, GNUNET_DHT_ClientResultMessage.type, GNUNET_DHT_ClientPutMessage.type, GNUNET_DHT_MonitorPutMessage.type, GNUNET_DHT_MonitorStartStopMessage.type, GNUNET_DHT_MonitorGetMessage.type, GNUNET_DHT_MonitorGetRespMessage.type, GNUNET_DHT_GetHandle.type, GNUNET_DHT_MonitorHandle.type, ClientQueryRecord.type, ClientMonitorRecord.type, GetActionContext.type, PeerPutMessage.type, PeerResultMessage.type, PeerGetMessage.type, RecentRequest.type, SearchMessage.type, PutMessage.type, ClientPutMessage.type, GNUNET_FS_Uri.type, ProcessResultClosure.type, MetaCounter.type, GNUNET_SEARCH_MetadataPrinterInfo.type, CadetQueryMessage.type, CadetReplyMessage.type, GSF_CadetRequest.type, HandleReplyClosure.type, TestExistClosure.type, ProcessReplyClosure.type, GSF_PendingRequestData.type, MigrationReadyBlock.type, MetaItem.type, MetaDataEntry.type, LookupMessage.type, GNUNET_GNS_LookupWithTldRequest.type, HttpResponseHeader.type, GNUNET_BLOCK_Group.type, GNUNET_MessageHeader.type, GNUNET_DATACACHE_Block.type, GNUNET_DB_EventHeaderP.type, GNUNET_DNSPARSER_Query.type, GNUNET_DNSPARSER_Record.type, GNUNET_GNSRECORD_Block.type, GNUNET_IDENTITY_PrivateKey.type, GNUNET_IDENTITY_PublicKey.type, GNUNET_IDENTITY_Signature.type, GNUNET_MQ_MessageHandler.type, GNUNET_RECLAIM_Attribute.type, GNUNET_RECLAIM_Credential.type, GNUNET_RECLAIM_Presentation.type, GNUNET_SET_Option.type, GNUNET_SETI_Option.type, GNUNET_SETU_Option.type, GNUNET_TESTBED_EventInformation.type, GNUNET_TUN_DnsQueryLine.type, GNUNET_TUN_DnsRecordLine.type, GNUNET_TUN_IcmpHeader.type, gnunet_testing.Condition.type, gnunet_testing.FileExistCondition.type, gnunet_testing.StatisticsCondition.type, gnunet_testing.EqualStatisticsCondition.type, GNUNET_MESSENGER_Operation.type, AutoconfigContext.type, GNUNET_NAT_AutoHandle.type, GNUNET_NAT_AUTO_AutoconfigResultMessage.type, icmp_ttl_exceeded_header.type, icmp_echo_header.type, REGEX_INTERNAL_Automaton.type, PendingMessage.type, GNUNET_STATISTICS_GetHandle.type, ForwardedOperationContext.type, OverlayConnectContext.type, OperationContext.type, OperationQueue.type, TopologyContext.type, GNUNET_TESTBED_UnderlayLinkModel.type, QUIC_header.type, TransportClient.type, GNUNET_SERVER_MessageHandler.type, GNUNET_TRANSPORT_WLAN_Ieee8023Frame.type, GNUNET_BIO_WriteHandle.type, GNUNET_BIO_ReadHandle.type, and GNUNET_NETWORK_Handle.type.

Field Documentation

◆ fulfilled

◆ type


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