risingwave_common::types::test_utils

Trait IntervalTestExt

source
pub trait IntervalTestExt {
    // Required methods
    fn from_ymd(year: i32, month: i32, days: i32) -> Self;
    fn from_month(months: i32) -> Self;
    fn from_days(days: i32) -> Self;
    fn from_millis(ms: i64) -> Self;
    fn from_minutes(minutes: i64) -> Self;
}
Expand description

These constructors may panic when value out of bound. Only use in tests with known input.

Required Methods§

source

fn from_ymd(year: i32, month: i32, days: i32) -> Self

source

fn from_month(months: i32) -> Self

source

fn from_days(days: i32) -> Self

source

fn from_millis(ms: i64) -> Self

source

fn from_minutes(minutes: i64) -> Self

Object Safety§

This trait is not object safe.

Implementors§