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

Function TestExampleWriteFile

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

Source from the content-addressed store, hash-verified

23}
24
25func TestExampleWriteFile(t *testing.T) {
26 filename := "example.png"
27 if err := WriteFile("https://example.org", Medium, 256, filename); err != nil {
28 if err = os.Remove(filename); err != nil {
29 t.Errorf("Error: %s", err.Error())
30 }
31 }
32}
33
34func TestExampleEncodeWithColourAndWithoutBorder(t *testing.T) {
35 q, err := New("https://example.org", Medium)

Callers

nothing calls this directly

Calls 1

WriteFileFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…