O'Reilly logo

Distributed Computing with Go by V.N. Nikhil Anurag

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Testing Librarian

In order to test whether Librarian works as expected, we need to test two things:

  1. Check if /api/index accepts index terms.
  2. Check if /api/query returns the correct results and in the expected order.

We can test point 1 with the help of a separate program/script, feeder.go, and point 2 with simple cURL commands.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required