Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
R
rust-rocksdb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangzongwu
rust-rocksdb
Commits
84881bab
Commit
84881bab
authored
May 31, 2017
by
siddontang
Committed by
GitHub
May 31, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use rustfmt 0.6.0 (#61)
parent
b196e4dd
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
12 additions
and
12 deletions
+12
-12
.travis.yml
.travis.yml
+2
-1
circle.yml
circle.yml
+1
-1
test_compaction_filter.rs
tests/test_compaction_filter.rs
+0
-0
test_iterator.rs
tests/test_iterator.rs
+4
-6
test_multithreaded.rs
tests/test_multithreaded.rs
+0
-0
test_rocksdb_options.rs
tests/test_rocksdb_options.rs
+0
-0
test_slice_transform.rs
tests/test_slice_transform.rs
+2
-4
test_statistics.rs
tests/test_statistics.rs
+0
-0
Makefile
travis-build/Makefile
+3
-0
No files found.
.travis.yml
View file @
84881bab
...
@@ -15,7 +15,7 @@ os:
...
@@ -15,7 +15,7 @@ os:
# - osx
# - osx
before_script
:
before_script
:
-
cargo install --force --vers 0.6.1 rustfmt ||
true
-
make -f travis-build/Makefile prepare-rustfmt
script
:
script
:
-
cargo fmt && git diff-index --quiet HEAD -- || (echo please make format and run tests before creating a pr!; exit 1)
-
cargo fmt && git diff-index --quiet HEAD -- || (echo please make format and run tests before creating a pr!; exit 1)
...
@@ -26,3 +26,4 @@ env:
...
@@ -26,3 +26,4 @@ env:
global
:
global
:
-
RUST_TEST_THREADS=1
-
RUST_TEST_THREADS=1
-
LD_LIBRARY_PATH
:
"
/usr/local/lib"
-
LD_LIBRARY_PATH
:
"
/usr/local/lib"
-
RUSTFMT_VERSION=v0.6.0
circle.yml
View file @
84881bab
...
@@ -41,7 +41,7 @@ dependencies:
...
@@ -41,7 +41,7 @@ dependencies:
else
else
rustup default "nightly-${RUSTC_DATE}";
rustup default "nightly-${RUSTC_DATE}";
fi
fi
-
cargo install --force --vers 0.6.1 rustfmt ||
true
-
make -f travis-build/Makefile prepare-rustfmt
-
|
-
|
if [[ ! -e $HOME/.local/lib/librocksdb.so ]]; then
if [[ ! -e $HOME/.local/lib/librocksdb.so ]]; then
export CPLUS_INCLUDE_PATH="${LOCAL_PREFIX}/include" && \
export CPLUS_INCLUDE_PATH="${LOCAL_PREFIX}/include" && \
...
...
tests/test_compaction_filter.rs
View file @
84881bab
tests/test_iterator.rs
View file @
84881bab
...
@@ -56,9 +56,8 @@ pub fn test_iterator() {
...
@@ -56,9 +56,8 @@ pub fn test_iterator() {
assert
!
(
p
.is_ok
());
assert
!
(
p
.is_ok
());
let
p
=
db
.put
(
k3
,
v3
);
let
p
=
db
.put
(
k3
,
v3
);
assert
!
(
p
.is_ok
());
assert
!
(
p
.is_ok
());
let
expected
=
vec!
[(
k1
.to_vec
(),
v1
.to_vec
()),
let
expected
=
(
k2
.to_vec
(),
v2
.to_vec
()),
vec!
[(
k1
.to_vec
(),
v1
.to_vec
()),
(
k2
.to_vec
(),
v2
.to_vec
()),
(
k3
.to_vec
(),
v3
.to_vec
())];
(
k3
.to_vec
(),
v3
.to_vec
())];
let
mut
iter
=
db
.iter
();
let
mut
iter
=
db
.iter
();
...
@@ -102,9 +101,8 @@ pub fn test_iterator() {
...
@@ -102,9 +101,8 @@ pub fn test_iterator() {
assert_eq!
(
iter
.collect
::
<
Vec
<
_
>>
(),
expected2
);
assert_eq!
(
iter
.collect
::
<
Vec
<
_
>>
(),
expected2
);
iter
.seek
(
SeekKey
::
Key
(
k2
));
iter
.seek
(
SeekKey
::
Key
(
k2
));
let
expected
=
vec!
[(
k2
.to_vec
(),
v2
.to_vec
()),
let
expected
=
(
k3
.to_vec
(),
v3
.to_vec
()),
vec!
[(
k2
.to_vec
(),
v2
.to_vec
()),
(
k3
.to_vec
(),
v3
.to_vec
()),
(
k4
.to_vec
(),
v4
.to_vec
())];
(
k4
.to_vec
(),
v4
.to_vec
())];
assert_eq!
(
iter
.collect
::
<
Vec
<
_
>>
(),
expected
);
assert_eq!
(
iter
.collect
::
<
Vec
<
_
>>
(),
expected
);
iter
.seek
(
SeekKey
::
Key
(
k2
));
iter
.seek
(
SeekKey
::
Key
(
k2
));
...
...
tests/test_multithreaded.rs
View file @
84881bab
tests/test_rocksdb_options.rs
View file @
84881bab
tests/test_slice_transform.rs
View file @
84881bab
...
@@ -58,10 +58,8 @@ fn test_slice_transform() {
...
@@ -58,10 +58,8 @@ fn test_slice_transform() {
let
mut
it
=
db
.iter
();
let
mut
it
=
db
.iter
();
let
invalid_seeks
=
vec!
[
b
"key_"
.to_vec
(),
let
invalid_seeks
=
b
"key_0"
.to_vec
(),
vec!
[
b
"key_"
.to_vec
(),
b
"key_0"
.to_vec
(),
b
"key_030"
.to_vec
(),
b
"key_03000"
.to_vec
()];
b
"key_030"
.to_vec
(),
b
"key_03000"
.to_vec
()];
for
key
in
invalid_seeks
{
for
key
in
invalid_seeks
{
it
.seek
(
SeekKey
::
Key
(
&
key
));
it
.seek
(
SeekKey
::
Key
(
&
key
));
...
...
tests/test_statistics.rs
View file @
84881bab
travis-build/Makefile
0 → 100644
View file @
84881bab
prepare-rustfmt
:
curl
-L
https://github.com/tennix/rustfmt/releases/download/v0.6/rustfmt-
${
RUSTFMT_VERSION
}
-linux-amd64
.tar.gz
-o
rustfmt-
${
RUSTFMT_VERSION
}
-linux-amd64
.tar.gz
&&
\
mkdir
-p
${
HOME
}
/.cargo/bin
&&
tar
xzf rustfmt-
${
RUSTFMT_VERSION
}
-linux-amd64
.tar.gz
-C
${
HOME
}
/.cargo/bin
--strip-components
=
1
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment