Exemple #1
0
func TestBookGetByBookId(t *testing.T) {
	b := readhacker.Book{}
	book := b.GetByBookId(1)

	if book == nil {
		t.Error("book is nil")
	} else {
		fmt.Printf(book.BookName)
	}
}