mysqlbinlog/get_first_previous_gtid_of_binlog_dir_test.go

16 lines
294 B
Go
Raw Normal View History

2023-04-25 18:41:34 +08:00
package binlog
import (
"testing"
)
func TestGetFirstPreviousGtidOfBinlogDir(t *testing.T) {
gtidDesc, err := GetFirstPreviousGtidOfBinlogDir("./test", "mysql-bin56")
if nil != err {
t.Fatalf("unexpected error %v", err)
}
if "" != gtidDesc {
t.Fatalf("wrong gtid %v", gtidDesc)
}
}