19 releases

0.7.1 Oct 17, 2024
0.6.2 Sep 3, 2024
0.6.1 May 22, 2024
0.5.4 Jan 2, 2024
0.1.4 Feb 24, 2023

#423 in Network programming

Download history 160/week @ 2024-07-29 1/week @ 2024-08-05 2/week @ 2024-08-12 1/week @ 2024-08-19 29/week @ 2024-08-26 212/week @ 2024-09-02 16/week @ 2024-09-09 38/week @ 2024-09-16 29/week @ 2024-09-23 197/week @ 2024-09-30 20/week @ 2024-10-07 229/week @ 2024-10-14 19/week @ 2024-10-21 7/week @ 2024-10-28 19/week @ 2024-11-04

275 downloads per month
Used in 6 crates

MIT license

79KB
2K SLoC

htsget-test

MIT licensed Build Status

Common test functions and utilities used by htsget-rs.

Overview

This crate contains shared code used for testing by other htsget-rs crates. It has common server tests, as well as other utility functions.

Usage

For running htsget-rs as an application

There is no need to interact with this crate for running htsget-rs.

As a library

This crate contains util functions and server_tests. The server_tests use some example requests to test the ticket server and the data block server. To use the server_tests, TestServer and TestRequest need to be implemented, and then the test_* functions can be called.

This library is intended to be used as a development dependency.

Feature flags

This crate has the following features:

  • http: used to enable common functionality for HTTP tests.
  • aws-mocks: used to enable AWS mocking for tests.
  • s3-storage: used to enable S3Storage functionality.
  • url-storage: used to enable UrlStorage functionality.
  • experimental: used to enable experimental features that aren't necessarily part of the htsget spec, such as Crypt4GH support through C4GHStorage.

License

This project is licensed under the MIT license.

Dependencies

~7–32MB
~538K SLoC