MCPcopy Create free account
hub / github.com/skip2/go-qrcode / TestExampleEncode

Function TestExampleEncode

example_test.go:17–23  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

15)
16
17func TestExampleEncode(t *testing.T) {
18 if png, err := Encode("https://example.org", Medium, 256); err != nil {
19 t.Errorf("Error: %s", err.Error())
20 } else {
21 fmt.Printf("PNG is %d bytes long", len(png))
22 }
23}
24
25func TestExampleWriteFile(t *testing.T) {
26 filename := "example.png"

Callers

nothing calls this directly

Calls 1

EncodeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…