0d1ba7bc08
Return an error when misusing the endpoint method 'listSegmentsFromNumberOfSegments' because there is the method 'listSegmentsManually' for being used when the number of segments is less or equal than 0. If we don't return an error on `listSegmentsFromNumberOfSegments` we would realize that we have a bug much more later than returning an error because the clients wouldn't receive an error and would receive an empty list, making them to wonder what they are doing wrong to receive 0 results before they realize that they could be in front of a bug. This commit also renames the function to be plural as "numberOfSegments" parameter and the test function which missed also the end 's'. Change-Id: I02318685bf36aa3af26545731a1711621a5e2e39 |
||
---|---|---|
.. | ||
batch.go | ||
config.go | ||
db_test.go | ||
db.go | ||
loop_test.go | ||
loop.go | ||
metainfo_test.go | ||
metainfo.go | ||
service_test.go | ||
service.go | ||
validation.go |