1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-17 10:56:24 -07:00
gochan/src/captcha_test.go
Eggbertx d4b7185ecd Use v1 base64captcha API
Also check for sql.ErrNoRows when SELECTing from DBPREFIXinfo, fixes #16
2020-02-07 21:46:30 -08:00

15 lines
296 B
Go

package main
import (
"fmt"
"testing"
)
func TestGetCaptchaImage(t *testing.T) {
config.UseCaptcha = true
config.CaptchaWidth = 240
config.CaptchaHeight = 80
initCaptcha()
captchaID, captchaB64 := getCaptchaImage()
fmt.Printf("captchaID: %s\ncaptchaB64: %s\n", captchaID, captchaB64)
}