File tree 7 files changed +30
-20
lines changed
7 files changed +30
-20
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ license = "Apache-2.0"
6
6
publish = false
7
7
edition = " 2021"
8
8
9
+ [lib ]
10
+ doctest = false
11
+ test = false
12
+
9
13
[dependencies ]
10
14
common-datavalues = {path = " ../../datavalues" }
11
15
common-exception = {path = " ../../exception" }
Original file line number Diff line number Diff line change 14
14
15
15
//! This crate defines data types used in meta data storage service.
16
16
17
- #[ cfg( test) ]
18
- mod cluster_test;
19
- #[ cfg( test) ]
20
- mod match_seq_test;
21
- #[ cfg( test) ]
22
- mod user_privilege_test;
23
- #[ cfg( test) ]
24
- mod user_quota_test;
25
-
26
17
pub use change:: AddResult ;
27
18
pub use change:: Change ;
28
19
pub use cluster:: Node ;
Original file line number Diff line number Diff line change 13
13
// limitations under the License.
14
14
15
15
use common_exception:: exception:: Result ;
16
-
17
- use crate :: NodeInfo ;
16
+ use common_meta_types:: NodeInfo ;
18
17
19
18
#[ test]
20
19
fn test_node_info_ip_port ( ) -> Result < ( ) > {
Original file line number Diff line number Diff line change
1
+ // Copyright 2021 Datafuse Labs.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ mod cluster;
16
+ mod match_seq;
17
+ mod user_privilege;
18
+ mod user_quota;
Original file line number Diff line number Diff line change 14
14
15
15
use std:: result:: Result ;
16
16
17
- use crate :: ConflictSeq ;
18
- use crate :: MatchSeq ;
19
- use crate :: MatchSeqExt ;
20
- use crate :: SeqV ;
17
+ use common_meta_types :: ConflictSeq ;
18
+ use common_meta_types :: MatchSeq ;
19
+ use common_meta_types :: MatchSeqExt ;
20
+ use common_meta_types :: SeqV ;
21
21
22
22
#[ test]
23
23
fn test_match_seq_match_seq_value ( ) -> Result < ( ) , ( ) > {
Original file line number Diff line number Diff line change 13
13
// limitations under the License.
14
14
15
15
use common_exception:: exception:: Result ;
16
-
17
- use crate :: UserPrivilege ;
18
- use crate :: UserPrivilegeType ;
16
+ use common_meta_types:: UserPrivilege ;
17
+ use common_meta_types:: UserPrivilegeType ;
19
18
20
19
#[ test]
21
20
fn test_user_privilege ( ) -> Result < ( ) > {
Original file line number Diff line number Diff line change 13
13
// limitations under the License.
14
14
15
15
use common_exception:: exception:: Result ;
16
-
17
- use crate :: UserQuota ;
16
+ use common_meta_types:: UserQuota ;
18
17
19
18
#[ test]
20
19
fn test_user_quota ( ) -> Result < ( ) > {
You can’t perform that action at this time.
0 commit comments