File: options_gen_test.go

package info (click to toggle)
golang-github-lestrrat-go-httprc 1.0.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 168 kB
  • sloc: perl: 56; sh: 6; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 752 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// This file is auto-generated by internal/cmd/genoptions/main.go. DO NOT EDIT

package httprc

import (
	"testing"

	"github.com/stretchr/testify/require"
)

func TestOptionIdent(t *testing.T) {
	require.Equal(t, "WithErrSink", identErrSink{}.String())
	require.Equal(t, "WithFetcherWorkerCount", identFetcherWorkerCount{}.String())
	require.Equal(t, "WithHTTPClient", identHTTPClient{}.String())
	require.Equal(t, "WithMinRefreshInterval", identMinRefreshInterval{}.String())
	require.Equal(t, "WithRefreshInterval", identRefreshInterval{}.String())
	require.Equal(t, "WithRefreshWindow", identRefreshWindow{}.String())
	require.Equal(t, "WithTransformer", identTransformer{}.String())
	require.Equal(t, "WithWhitelist", identWhitelist{}.String())
}