Documentation ¶ Overview ¶ Package mock provides mock implementations of nbggovge.Client. Index ¶ func NewClient(data []nbggovge.Rates) nbggovge.Client Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewClient ¶ func NewClient(data []nbggovge.Rates) nbggovge.Client NewClient creates a new mock client. It returns a client that returns data for each request. If currency is not found in data, it returns http.StatusNotFound. if date is empty, it returns current date in response. Types ¶ This section is empty. Source Files ¶ View all Source files mock.go Click to show internal directories. Click to hide internal directories.