32d60146e5
* feat: prepare for crates.io publishing Signed-off-by: jeremyhi <fengjiachun@gmail.com> * fix: exclude typos check Signed-off-by: jeremyhi <fengjiachun@gmail.com> * fix: add header for each file Signed-off-by: jeremyhi <fengjiachun@gmail.com> --------- Signed-off-by: jeremyhi <fengjiachun@gmail.com>
28 lines
962 B
Rust
28 lines
962 B
Rust
// Copyright 2023 Greptime Team
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
include!("../generated/greptime.v1.region.rs");
|
|
|
|
#[cfg(test)]
|
|
mod test {
|
|
use crate::v1::region::region_request::Body as RegionRequest;
|
|
use crate::v1::region::InsertRequests;
|
|
|
|
#[test]
|
|
fn test_region_request_name() {
|
|
let request = RegionRequest::Inserts(InsertRequests { requests: vec![] });
|
|
assert_eq!("Inserts", request.as_ref());
|
|
}
|
|
}
|