1package pages
2
3import (
4 "html/template"
5 "log/slog"
6 "testing"
7
8 "tangled.org/core/appview/config"
9 "tangled.org/core/idresolver"
10)
11
12func TestPages_funcMap(t *testing.T) {
13 tests := []struct {
14 name string // description of this test case
15 // Named input parameters for receiver constructor.
16 config *config.Config
17 res *idresolver.Resolver
18 l *slog.Logger
19 want template.FuncMap
20 }{
21 // TODO: Add test cases.
22 }
23 for _, tt := range tests {
24 t.Run(tt.name, func(t *testing.T) {
25 p := NewPages(tt.config, tt.res, tt.l)
26 got := p.funcMap()
27 // TODO: update the condition below to compare got with tt.want.
28 if true {
29 t.Errorf("funcMap() = %v, want %v", got, tt.want)
30 }
31 })
32 }
33}