(t *testing.T)
| 15 | ) |
| 16 | |
| 17 | func 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 | |
| 25 | func TestExampleWriteFile(t *testing.T) { |
| 26 | filename := "example.png" |
nothing calls this directly
no test coverage detected
searching dependent graphs…