This repository has been archived on 2026-03-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
2021-11-03 19:08:49 +01:00
2021-11-03 19:08:49 +01:00
2020-12-10 12:16:30 +01:00
2020-12-10 12:16:30 +01:00
2020-12-10 12:16:30 +01:00
2020-12-10 12:16:30 +01:00
2020-12-10 12:16:30 +01:00
2020-12-10 12:16:30 +01:00
2021-01-27 09:12:05 +01:00
2020-12-10 12:16:30 +01:00

apex mocks

GoReportCard GoDoc Build Statuscoverage report

Package mocks provides a mock implementation of Apex which can be used to unit test applications using Apex logging.

Download

go get gitlab.com/unboundsoftware/apex-mocks

Usage

Make sure that your application uses log.Interface to be able to pass in a Mock from your tests instead.

To verify what has been logged:

  logger := &apex.Mock{}
  // ... run your actual test using the logger above
  logger.Check(t, tt.wantLogged)
S
Description
No description provided
Readme MIT 111 KiB
Languages
Go 100%