tangled
alpha
login
or
join now
willdot.net
/
tangled-fork
forked from
tangled.org/core
Monorepo for Tangled
0
fork
atom
overview
issues
pulls
pipelines
ci: fix nits
Signed-off-by: oppiliappan <me@oppi.li>
oppi.li
3 months ago
edbe428d
3eb50c9f
verified
This commit was signed with the committer's
known signature
.
oppi.li
SSH Key Fingerprint:
SHA256:yQs05DbrlPDC2pBXLxqOdLYEswq3oEBnHaJiBP7bOlM=
+6
-3
2 changed files
expand all
collapse all
unified
split
appview
pages
funcmap_test.go
repo
repo.go
+5
-2
appview/pages/funcmap_test.go
···
2
3
import (
4
"html/template"
0
0
0
5
"tangled.org/core/appview/config"
6
"tangled.org/core/idresolver"
7
-
"testing"
8
)
9
10
func TestPages_funcMap(t *testing.T) {
···
13
// Named input parameters for receiver constructor.
14
config *config.Config
15
res *idresolver.Resolver
0
16
want template.FuncMap
17
}{
18
// TODO: Add test cases.
19
}
20
for _, tt := range tests {
21
t.Run(tt.name, func(t *testing.T) {
22
-
p := NewPages(tt.config, tt.res)
23
got := p.funcMap()
24
// TODO: update the condition below to compare got with tt.want.
25
if true {
···
2
3
import (
4
"html/template"
5
+
"log/slog"
6
+
"testing"
7
+
8
"tangled.org/core/appview/config"
9
"tangled.org/core/idresolver"
0
10
)
11
12
func TestPages_funcMap(t *testing.T) {
···
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 {
+1
-1
appview/repo/repo.go
···
823
824
f, err := rp.repoResolver.Resolve(r)
825
if err != nil {
826
-
l.Error("failed to get repo and knot", err)
827
w.WriteHeader(http.StatusBadRequest)
828
return
829
}
···
823
824
f, err := rp.repoResolver.Resolve(r)
825
if err != nil {
826
+
l.Error("failed to get repo and knot", "err", err)
827
w.WriteHeader(http.StatusBadRequest)
828
return
829
}