GNUnet  0.20.0
gnunet_testing.EqualStatisticsCondition Class Reference
Inheritance diagram for gnunet_testing.EqualStatisticsCondition:
[legend]
Collaboration diagram for gnunet_testing.EqualStatisticsCondition:
[legend]

Public Member Functions

def __init__ (self, peer, subsystem, name, peer2, subsystem2, name2)
 
def check (self)
 
def evaluate (self, failed_only)
 
- Public Member Functions inherited from gnunet_testing.Condition
def __init__ (self)
 
def __init__ (self, type)
 

Data Fields

 fulfilled
 
 type
 
 peer
 
 subsystem
 
 name
 
 result
 
 peer2
 
 subsystem2
 
 name2
 
 result2
 
- Data Fields inherited from gnunet_testing.Condition
 fulfilled
 
 type
 

Detailed Description

Definition at line 205 of file gnunet_testing.py.

Constructor & Destructor Documentation

◆ __init__()

def gnunet_testing.EqualStatisticsCondition.__init__ (   self,
  peer,
  subsystem,
  name,
  peer2,
  subsystem2,
  name2 
)

Definition at line 206 of file gnunet_testing.py.

206  def __init__(self, peer, subsystem, name, peer2, subsystem2, name2):
207  self.fulfilled = False
208  self.type = 'equalstatistics'
209  self.peer = peer
210  self.subsystem = subsystem
211  self.name = name
212  self.result = -1
213  self.peer2 = peer2
214  self.subsystem2 = subsystem2
215  self.name2 = name2
216  self.result2 = -1
217 

Member Function Documentation

◆ check()

def gnunet_testing.EqualStatisticsCondition.check (   self)

Reimplemented from gnunet_testing.Condition.

Definition at line 218 of file gnunet_testing.py.

218  def check(self):
219  if (self.fulfilled == False):
220  self.result = self.peer.get_statistics_value(
221  self.subsystem, self.name
222  )
223  self.result2 = self.peer2.get_statistics_value(
224  self.subsystem2, self.name2
225  )
226  if (self.result == self.result2):
227  self.fulfilled = True
228  return True
229  else:
230  return False
231  else:
232  return True
233 

References gnunet_testing.Check.fulfilled, gnunet_testing.Condition.fulfilled, gnunet_testing.FileExistCondition.fulfilled, gnunet_testing.StatisticsCondition.fulfilled, gnunet_testing.EqualStatisticsCondition.fulfilled, httpdomain.httpdomain.HTTPIndex.name, httpdomain.httpdomain.HTTPDomain.name, httpdomain.httpdomain.HTTPLexer.name, typescriptdomain.TypeScriptDomain.name, typescriptdomain.BetterTypeScriptLexer.name, typescriptdomain.MyHtmlBuilder.name, name, ServiceList.name, Experiment.name, GDS_Underlay.name, LocalService.name, GNUNET_GNS_LookupWithTldRequest.name, ParameterMap.name, userdata.name, AuthorityChain.name, AuthorityChain::.name, GNS_ResolverHandle.name, RequestHandle.name, GnsRecordInfo.name, GNUNET_IDENTITY_Ego.name, GNUNET_IDENTITY_EgoLookup.name, GNUNET_ARM_ServiceInfo.name, GNUNET_DNSPARSER_Query.name, GNUNET_DNSPARSER_Record.name, GNUNET_FS_ProgressInfo.name, GNUNET_FS_ProgressInfo::GNUNET_FS_SearchStatusEvent::GNUNET_GS_SearchResultNamespaceEvent.name, GNUNET_GETOPT_CommandLineOption.name, GNUNET_MESSENGER_RoomDetailsRecord.name, GNUNET_MESSENGER_MessageName.name, GNUNET_MESSENGER_MessageFile.name, GNUNET_MESSENGER_MessageBody.name, GNUNET_PQ_PreparedStatement.name, GNUNET_RECLAIM_Attribute.name, GNUNET_RECLAIM_Credential.name, GNUNET_REST_Plugin.name, gnunet_testing.StatisticsCondition.name, gnunet_testing.EqualStatisticsCondition.name, gnunet_testing.Test.name, GNUNET_MESSENGER_SrvHandle.name, GNUNET_MESSENGER_Contact.name, GNUNET_MESSENGER_Handle.name, MarkedRecord.name, GNUNET_PQ_Context.name, GNUNET_PQ_Context::name2oid.name, REGEX_INTERNAL_State.name, SingleTestRun.name, StatsEntry.name, ValueSet.name, GNUNET_STATISTICS_WatchEntry.name, GNUNET_STATISTICS_GetHandle.name, SharedService.name, Barrier.name, mem_table_struct.name, GNUNET_TESTBED_BarrierInit.name, GNUNET_TESTBED_BarrierCancel.name, GNUNET_TESTBED_BarrierWait.name, GNUNET_TESTBED_Barrier.name, GNUNET_TESTBED_BarrierWaitHandle.name, GetStatsContext.name, GNUNET_TESTING_Barrier.name, Plugin.name, HTTP_Client_Plugin.name, HTTP_Server_Plugin.name, ConfigSection.name, GNoption.name, PluginList.name, ConversionTable.name, gnunet_testing.EqualStatisticsCondition.name2, RequestAddressMessage.peer, AddressAddMessage.peer, AddressUpdateMessage.peer, AddressDestroyedMessage.peer, GNUNET_ATS_SessionReleaseMessage.peer, AddressSuggestionMessage.peer, PeerInformationMessage.peer, AddressListRequestMessage.peer, ReservationRequestMessage.peer, ReservationResultMessage.peer, ChangePreferenceMessage.peer, FeedbackPreferenceMessage.peer, GNUNET_ATS_ReservationContext.peer, GNUNET_ATS_AddressListHandle.peer, PreferenceGenerator.peer, PropertyGenerator.peer, ATS_Address.peer, GNUNET_CADET_Channel.peer, GNUNET_CADET_LocalChannelCreateMessage.peer, GNUNET_CADET_LocalInfo.peer, GNUNET_CADET_RequestPathInfoMessage.peer, GNUNET_CADET_ChannelMonitor.peer, GNUNET_CADET_TEST_AdapterContext.peer, CadetPeerPathEntry.peer, ConnectNotifyMessage.peer, DisconnectNotifyMessage.peer, NotifyTrafficMessage.peer, SendMessageRequest.peer, SendMessageReady.peer, SendMessage.peer, MonitorNotifyMessage.peer, PeerRecord.peer, GSC_KeyExchangeInfo.peer, Session.peer, RecentRequest.peer, Context.peer, ChannelState.peer, ResponseLocSignatureMessage.peer, Location.peer, LocUriAssembly.peer, GSF_PeerPerformanceData.peer, MigrationReadyPeer.peer, GNUNET_DNS_Advertisement.peer, RegexAcceptBlock.peer, GNUNET_CADET_ChannelInfo.peer, GNUNET_CADET_PeerListEntry.peer, GNUNET_CADET_PeerPathDetail.peer, GNUNET_CADET_TunnelDetails.peer, GNUNET_CONVERSATION_PhoneRecord.peer, GNUNET_HELLO_Address.peer, GNUNET_MESSENGER_MessageMiss.peer, GNUNET_MESSENGER_MessagePeer.peer, GNUNET_MESSENGER_MessageBody.peer, GNUNET_PEERSTORE_Record.peer, GNUNET_TESTBED_EventInformation::.peer, GNUNET_TESTBED_EventInformation.peer, GNUNET_TUN_GnsVpnRecord.peer, gnunet_testing.StatisticsCondition.peer, gnunet_testing.EqualStatisticsCondition.peer, GNUNET_MESSENGER_SrvTunnel.peer, GNUNET_MESSENGER_ListTunnel.peer, test_peer.peer, PrintContext.peer, ListPeerMessage.peer, InfoMessage.peer, GNUNET_PEERINFO_IteratorContext.peer, StoreRecordMessage.peer, GNUNET_PEERSTORE_StoreContext.peer, GNUNET_PEERSTORE_IterateContext.peer, CadetExit.peer, GetRandPeerIteratorCls.peer, AliceServiceSession.peer, BobServiceSession.peer, AliceComputationMessage.peer, DecryptPeerInfo.peer, KeygenPeerInfo.peer, GNUNET_SECRETSHARING_KeygenRevealData.peer, GNUNET_SECRETSHARING_KeygenCommitData.peer, GNUNET_SECRETSHARING_DecryptData.peer, Operation.peer, Peer::.peer, Peer.peer, OverlayConnectContext.peer, RemoteOverlayConnectCtx.peer, ManageServiceContext.peer, GNUNET_TESTBED_RemoteOverlayConnectMessage.peer, PeerCreateData.peer, PeerEventData.peer, PeerDestroyData.peer, PeerInfoData.peer, PeerReconfigureData.peer, ManageServiceData.peer, ServiceConnectData.peer, LinkProperty.peer, ListEntry.peer, GNUNET_TESTBED_UnderlayLinkModel.peer, ServiceContext.peer, FindAdvHelloContext.peer, TransportClient.peer, TransportClient::.peer, GST_BlacklistCheck.peer, TM_Peer.peer, StartPeerState.peer, GNUNET_TRANSPORT_TESTING_PeerContext.peer, QuotaSetMessage.peer, InboundMessage.peer, DisconnectInfoMessage.peer, SendOkMessage.peer, RecvOkMessage.peer, OutboundMessage.peer, ValidationIterateResponseMessage.peer, ValidationMonitorMessage.peer, PeerMonitorMessage.peer, TrafficMetricMessage.peer, PeerIterateResponseMessage.peer, BlacklistMessage.peer, TransportPluginMonitorMessage.peer, GNUNET_TRANSPORT_QueueHandle.peer, GNUNET_TRANSPORT_MonitorContext.peer, GNUNET_TRANSPORT_PeerMonitoringContext.peer, GNUNET_VPN_RedirectionRequest.peer, GNUNET_CADET_ConnectionBrokenMessage.peer2, GNUNET_CONSENSUS_RoundContextMessage.peer2, TaskKey.peer2, GNUNET_TESTBED_EventInformation.peer2, GNUNET_TESTBED_EventInformation::.peer2, gnunet_testing.EqualStatisticsCondition.peer2, ForwardedOverlayConnectContext.peer2, GNUNET_TESTBED_ConfigureUnderlayLinkMessage.peer2, GNUNET_TESTBED_OverlayConnectMessage.peer2, GNUNET_TESTBED_ConnectionEventMessage.peer2, GNUNET_ARM_ResultMessage.result, EqualsContext.result, GNUNET_FS_ProgressInfo::GNUNET_FS_SearchStatusEvent::GNUNET_FS_SearchResultEvent.result, GNUNET_FS_ProgressInfo.result, GNUNET_FS_ProgressInfo::GNUNET_FS_SearchStatusEvent.result, GNUNET_FS_ProgressInfo::GNUNET_FS_SearchStatusEvent::GNUNET_FS_SearchResumeResultEvent.result, GNUNET_TESTBED_PeerInformation.result, gnunet_testing.StatisticsCondition.result, gnunet_testing.EqualStatisticsCondition.result, GNUNET_MESSENGER_MemberFind.result, AddressRecord.result, ConsumeTicketResultMessage.result, SearchContext.result, GNUNET_TESTING_Interpreter.result, FindAdvHelloContext.result, GNUNET_ATS_SessionItCtx.result, gnunet_testing.EqualStatisticsCondition.result2, gnunet_testing.StatisticsCondition.subsystem, gnunet_testing.EqualStatisticsCondition.subsystem, StatsEntry.subsystem, ClientEntry.subsystem, ValueSet.subsystem, GNUNET_STATISTICS_WatchEntry.subsystem, GNUNET_STATISTICS_GetHandle.subsystem, GNUNET_STATISTICS_Handle.subsystem, GetStatsContext.subsystem, and gnunet_testing.EqualStatisticsCondition.subsystem2.

◆ evaluate()

def gnunet_testing.EqualStatisticsCondition.evaluate (   self,
  failed_only 
)

Reimplemented from gnunet_testing.Condition.

Definition at line 234 of file gnunet_testing.py.

234  def evaluate(self, failed_only):
235  if (((self.fulfilled == False) and (failed_only == True))
236  or (failed_only == False)):
237  logger.debug(
238  '%s %s %s == %s %s %s %s %s', self.peer.id[:4],
239  self.subsystem.ljust(12), self.name.ljust(30), self.result,
240  self.peer2.id[:4], self.subsystem2.ljust(12),
241  self.name2.ljust(30), self.result2
242  )
243  return self.fulfilled
244 
245 
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, httpdomain.httpdomain.HTTPIndex.name, httpdomain.httpdomain.HTTPDomain.name, httpdomain.httpdomain.HTTPLexer.name, typescriptdomain.TypeScriptDomain.name, typescriptdomain.BetterTypeScriptLexer.name, typescriptdomain.MyHtmlBuilder.name, name, ServiceList.name, Experiment.name, GDS_Underlay.name, LocalService.name, GNUNET_GNS_LookupWithTldRequest.name, ParameterMap.name, AuthorityChain::.name, GNS_ResolverHandle.name, userdata.name, AuthorityChain.name, RequestHandle.name, GnsRecordInfo.name, GNUNET_IDENTITY_Ego.name, GNUNET_IDENTITY_EgoLookup.name, GNUNET_ARM_ServiceInfo.name, GNUNET_DNSPARSER_Query.name, GNUNET_DNSPARSER_Record.name, GNUNET_FS_ProgressInfo::GNUNET_FS_SearchStatusEvent::GNUNET_GS_SearchResultNamespaceEvent.name, GNUNET_FS_ProgressInfo.name, GNUNET_GETOPT_CommandLineOption.name, GNUNET_MESSENGER_RoomDetailsRecord.name, GNUNET_MESSENGER_MessageName.name, GNUNET_MESSENGER_MessageFile.name, GNUNET_MESSENGER_MessageBody.name, GNUNET_PQ_PreparedStatement.name, GNUNET_RECLAIM_Attribute.name, GNUNET_RECLAIM_Credential.name, GNUNET_REST_Plugin.name, gnunet_testing.StatisticsCondition.name, gnunet_testing.EqualStatisticsCondition.name, gnunet_testing.Test.name, GNUNET_MESSENGER_SrvHandle.name, GNUNET_MESSENGER_Contact.name, GNUNET_MESSENGER_Handle.name, MarkedRecord.name, GNUNET_PQ_Context::name2oid.name, GNUNET_PQ_Context.name, REGEX_INTERNAL_State.name, SingleTestRun.name, StatsEntry.name, ValueSet.name, GNUNET_STATISTICS_WatchEntry.name, GNUNET_STATISTICS_GetHandle.name, SharedService.name, Barrier.name, mem_table_struct.name, GNUNET_TESTBED_BarrierInit.name, GNUNET_TESTBED_BarrierCancel.name, GNUNET_TESTBED_BarrierWait.name, GNUNET_TESTBED_Barrier.name, GNUNET_TESTBED_BarrierWaitHandle.name, GetStatsContext.name, GNUNET_TESTING_Barrier.name, Plugin.name, HTTP_Client_Plugin.name, HTTP_Server_Plugin.name, ConfigSection.name, GNoption.name, PluginList.name, ConversionTable.name, gnunet_testing.EqualStatisticsCondition.name2, RequestAddressMessage.peer, AddressAddMessage.peer, AddressUpdateMessage.peer, AddressDestroyedMessage.peer, GNUNET_ATS_SessionReleaseMessage.peer, AddressSuggestionMessage.peer, PeerInformationMessage.peer, AddressListRequestMessage.peer, ReservationRequestMessage.peer, ReservationResultMessage.peer, ChangePreferenceMessage.peer, FeedbackPreferenceMessage.peer, GNUNET_ATS_ReservationContext.peer, GNUNET_ATS_AddressListHandle.peer, PreferenceGenerator.peer, PropertyGenerator.peer, ATS_Address.peer, GNUNET_CADET_Channel.peer, GNUNET_CADET_LocalChannelCreateMessage.peer, GNUNET_CADET_LocalInfo.peer, GNUNET_CADET_RequestPathInfoMessage.peer, GNUNET_CADET_ChannelMonitor.peer, GNUNET_CADET_TEST_AdapterContext.peer, CadetPeerPathEntry.peer, ConnectNotifyMessage.peer, DisconnectNotifyMessage.peer, NotifyTrafficMessage.peer, SendMessageRequest.peer, SendMessageReady.peer, SendMessage.peer, MonitorNotifyMessage.peer, PeerRecord.peer, GSC_KeyExchangeInfo.peer, Session.peer, RecentRequest.peer, Context.peer, ChannelState.peer, ResponseLocSignatureMessage.peer, Location.peer, LocUriAssembly.peer, GSF_PeerPerformanceData.peer, MigrationReadyPeer.peer, GNUNET_DNS_Advertisement.peer, RegexAcceptBlock.peer, GNUNET_CADET_ChannelInfo.peer, GNUNET_CADET_PeerListEntry.peer, GNUNET_CADET_PeerPathDetail.peer, GNUNET_CADET_TunnelDetails.peer, GNUNET_CONVERSATION_PhoneRecord.peer, GNUNET_HELLO_Address.peer, GNUNET_MESSENGER_MessageMiss.peer, GNUNET_MESSENGER_MessagePeer.peer, GNUNET_MESSENGER_MessageBody.peer, GNUNET_PEERSTORE_Record.peer, GNUNET_TESTBED_EventInformation.peer, GNUNET_TESTBED_EventInformation::.peer, GNUNET_TUN_GnsVpnRecord.peer, gnunet_testing.StatisticsCondition.peer, gnunet_testing.EqualStatisticsCondition.peer, GNUNET_MESSENGER_SrvTunnel.peer, GNUNET_MESSENGER_ListTunnel.peer, test_peer.peer, PrintContext.peer, ListPeerMessage.peer, InfoMessage.peer, GNUNET_PEERINFO_IteratorContext.peer, StoreRecordMessage.peer, GNUNET_PEERSTORE_StoreContext.peer, GNUNET_PEERSTORE_IterateContext.peer, CadetExit.peer, GetRandPeerIteratorCls.peer, AliceServiceSession.peer, BobServiceSession.peer, AliceComputationMessage.peer, DecryptPeerInfo.peer, KeygenPeerInfo.peer, GNUNET_SECRETSHARING_KeygenRevealData.peer, GNUNET_SECRETSHARING_KeygenCommitData.peer, GNUNET_SECRETSHARING_DecryptData.peer, Operation.peer, Peer::.peer, Peer.peer, OverlayConnectContext.peer, RemoteOverlayConnectCtx.peer, ManageServiceContext.peer, GNUNET_TESTBED_RemoteOverlayConnectMessage.peer, PeerCreateData.peer, PeerEventData.peer, PeerDestroyData.peer, PeerInfoData.peer, PeerReconfigureData.peer, ManageServiceData.peer, ServiceConnectData.peer, LinkProperty.peer, ListEntry.peer, GNUNET_TESTBED_UnderlayLinkModel.peer, ServiceContext.peer, FindAdvHelloContext.peer, TransportClient::.peer, TransportClient.peer, GST_BlacklistCheck.peer, TM_Peer.peer, StartPeerState.peer, GNUNET_TRANSPORT_TESTING_PeerContext.peer, QuotaSetMessage.peer, InboundMessage.peer, DisconnectInfoMessage.peer, SendOkMessage.peer, RecvOkMessage.peer, OutboundMessage.peer, ValidationIterateResponseMessage.peer, ValidationMonitorMessage.peer, PeerMonitorMessage.peer, TrafficMetricMessage.peer, PeerIterateResponseMessage.peer, BlacklistMessage.peer, TransportPluginMonitorMessage.peer, GNUNET_TRANSPORT_QueueHandle.peer, GNUNET_TRANSPORT_MonitorContext.peer, GNUNET_TRANSPORT_PeerMonitoringContext.peer, GNUNET_VPN_RedirectionRequest.peer, GNUNET_CADET_ConnectionBrokenMessage.peer2, GNUNET_CONSENSUS_RoundContextMessage.peer2, TaskKey.peer2, GNUNET_TESTBED_EventInformation.peer2, GNUNET_TESTBED_EventInformation::.peer2, gnunet_testing.EqualStatisticsCondition.peer2, ForwardedOverlayConnectContext.peer2, GNUNET_TESTBED_ConfigureUnderlayLinkMessage.peer2, GNUNET_TESTBED_OverlayConnectMessage.peer2, GNUNET_TESTBED_ConnectionEventMessage.peer2, GNUNET_ARM_ResultMessage.result, EqualsContext.result, GNUNET_FS_ProgressInfo::GNUNET_FS_SearchStatusEvent::GNUNET_FS_SearchResultEvent.result, GNUNET_FS_ProgressInfo.result, GNUNET_FS_ProgressInfo::GNUNET_FS_SearchStatusEvent.result, GNUNET_FS_ProgressInfo::GNUNET_FS_SearchStatusEvent::GNUNET_FS_SearchResumeResultEvent.result, GNUNET_TESTBED_PeerInformation.result, gnunet_testing.StatisticsCondition.result, gnunet_testing.EqualStatisticsCondition.result, GNUNET_MESSENGER_MemberFind.result, AddressRecord.result, ConsumeTicketResultMessage.result, SearchContext.result, GNUNET_TESTING_Interpreter.result, FindAdvHelloContext.result, GNUNET_ATS_SessionItCtx.result, gnunet_testing.EqualStatisticsCondition.result2, gnunet_testing.StatisticsCondition.subsystem, gnunet_testing.EqualStatisticsCondition.subsystem, StatsEntry.subsystem, ClientEntry.subsystem, ValueSet.subsystem, GNUNET_STATISTICS_WatchEntry.subsystem, GNUNET_STATISTICS_GetHandle.subsystem, GNUNET_STATISTICS_Handle.subsystem, GetStatsContext.subsystem, and gnunet_testing.EqualStatisticsCondition.subsystem2.

Field Documentation

◆ fulfilled

◆ type

gnunet_testing.EqualStatisticsCondition.type

◆ peer

◆ subsystem

◆ name

◆ result

◆ peer2

gnunet_testing.EqualStatisticsCondition.peer2

◆ subsystem2

gnunet_testing.EqualStatisticsCondition.subsystem2

◆ name2

gnunet_testing.EqualStatisticsCondition.name2

◆ result2

gnunet_testing.EqualStatisticsCondition.result2

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