Skip to content

Commit

Permalink
add wrong package test
Browse files Browse the repository at this point in the history
  • Loading branch information
crhntr committed Aug 23, 2024
1 parent b12cc12 commit 8c24d2f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions cmd/muxt/testdata/generate/generate_wrong_package_name.txtar
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
env GOPACKAGE=wrong

! muxt generate

-- template.gohtml --
{{define "GET /" }}<h1>Hello, world!</h1>{{end}}

-- go.mod --
module server

go 1.22

-- template.go --
package server

import (
"embed"
"html/template"
)

//go:embed *.gohtml
var formHTML embed.FS

var templates = template.Must(template.ParseFS(formHTML, "*"))

0 comments on commit 8c24d2f

Please sign in to comment.