MySQL 9.7.0
Source Code Documentation
MockResolver Class Reference

#include <mock_resolver.h>

Inheritance diagram for MockResolver:
[legend]

Public Member Functions

 MockResolver (ResolveActions actions)
 
ResolveHostResult resolve_host (const std::string &hostname, CachePolicy cache_policy=CachePolicy::UseIfPresent) override
 
- Public Member Functions inherited from mysql_harness::resolver::ResolverInterface
virtual ~ResolverInterface ()=default
 

Static Public Member Functions

static std::string action (const Entry &entry)
 

Private Attributes

ResolveActions actions_
 

Additional Inherited Members

- Public Types inherited from mysql_harness::resolver::ResolverInterface
using ResolveHostResult = ::mysql_harness::resolver::ResolveHostResult
 
using CachePolicy = ::mysql_harness::resolver::CachePolicy
 

Constructor & Destructor Documentation

◆ MockResolver()

MockResolver::MockResolver ( ResolveActions  actions)
inline

Member Function Documentation

◆ action()

static std::string MockResolver::action ( const Entry entry)
inlinestatic

◆ resolve_host()

ResolveHostResult MockResolver::resolve_host ( const std::string &  hostname,
CachePolicy  cache_policy = CachePolicy::UseIfPresent 
)
inlineoverridevirtual

Member Data Documentation

◆ actions_

ResolveActions MockResolver::actions_
private

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