shep 0.14.0

The shep binary: a process manager that keeps a flock of long-running processes alive on macOS, Linux and Windows, with logs, watch and cron restarts, and webhook alerts
Documentation
//! Test fixtures shared by this module's two halves.
//!
//! One place rather than one copy each: [`super::refusal`]'s tests and
//! [`super::forms`]'s both need a `Field` with exactly one member set, and
//! a helper that drifts between two copies is a test that passes for the
//! wrong reason.

use super::super::field::{Bounds, Field, FieldKind};

/// A `Field` built by hand, [`FieldKind::Text`] and every other member
/// empty, so a test only sets the one thing it means to check.
pub(super) fn text_field(key: &str) -> Field {
    Field {
        key: key.to_owned(),
        help: key.to_owned(),
        group: None,
        kind: FieldKind::Text,
        value_kind: None,
        default: None,
        default_value: None,
        secret: false,
        editable: true,
        example: None,
        accepts: Vec::new(),
        refuses: Vec::new(),
        neighbours: Vec::new(),
        bounds: Bounds::default(),
    }
}