Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Commit

Permalink
Remove old 4d i16 stream read test
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSisley committed Nov 8, 2020
1 parent c440dda commit b905800
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions cql_storage_types/cql_i16/tests/i16.rs
Original file line number Diff line number Diff line change
@@ -1,25 +1,10 @@
mod constants;

use serial_test::serial;
use std::io::{ Cursor };
use constants::DATABASE_LOCATION;
use cql_i16::{ I16, unpack_stream };
use cql_storage_type_testing_lib::tests::{ read_write_stream_unchecked };
use cql_i16::{ unpack_stream };
pub mod single_point_read_writes;
pub mod stream_read_point_writes;

#[test]
#[serial]
fn _4d_i16_database_allows_for_stream_reads() {
read_write_stream_unchecked::_4d_database_allows_for_stream_reads::<I16, &dyn Fn(&mut Cursor<Vec<u8>>, usize, &mut [i16])>(
DATABASE_LOCATION,
42,
16,
80,
&unpack_i16_stream
);
}

fn unpack_i16_stream (stream: &mut Cursor<Vec<u8>>, n_values: usize, result: &mut [i16]) {
unpack_stream(stream, n_values, |idx, value| {
result[idx] = value
Expand Down

0 comments on commit b905800

Please sign in to comment.