mirror of
https://github.com/kjuulh/dagger-rs.git
synced 2025-02-23 16:21:12 +01:00
format code
This commit is contained in:
parent
2eb027754b
commit
d0483b0434
@ -114,27 +114,40 @@ impl CacheVolume {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn can_render_query_container() {
|
fn can_render_query_container() {
|
||||||
|
let description = "Loads a container from ID.\nNull ID returns an empty container (scratch).\nOptional platform argument initializes new containers to execute and publish as that platform. Platform defaults to that of the builder's host.".into();
|
||||||
|
|
||||||
let t: FullType = FullType {
|
let t: FullType = FullType {
|
||||||
kind: Some(__TypeKind::OBJECT),
|
kind: Some(__TypeKind::OBJECT),
|
||||||
name: Some("Query".into()),
|
name: Some("Query".into()),
|
||||||
description: None,
|
description: None,
|
||||||
fields: Some(vec![FullTypeFields {
|
fields: Some(vec![FullTypeFields {
|
||||||
name: Some("container".into()),
|
name: Some("container".into()),
|
||||||
description: Some("Loads a container from ID.\nNull ID returns an empty container (scratch).\nOptional platform argument initializes new containers to execute and publish as that platform. Platform defaults to that of the builder's host.".into()),
|
description: Some(description),
|
||||||
args: Some(
|
args: Some(vec![
|
||||||
vec![
|
Some(FullTypeFieldsArgs {
|
||||||
Some(
|
|
||||||
FullTypeFieldsArgs
|
|
||||||
{
|
|
||||||
input_value: InputValue { name: "id".into(), description: None, type_: TypeRef { kind: Some(__TypeKind::SCALAR), name: Some("ContainerID".into()), of_type: None }, default_value: None }
|
|
||||||
}
|
|
||||||
),
|
|
||||||
Some(
|
|
||||||
FullTypeFieldsArgs {
|
|
||||||
input_value: InputValue {
|
input_value: InputValue {
|
||||||
name: "platform".into(), description: None, type_: TypeRef { kind: Some(__TypeKind::SCALAR), name: Some("Platform".into()), of_type: None },
|
name: "id".into(),
|
||||||
default_value: None }
|
description: None,
|
||||||
})
|
type_: TypeRef {
|
||||||
|
kind: Some(__TypeKind::SCALAR),
|
||||||
|
name: Some("ContainerID".into()),
|
||||||
|
of_type: None,
|
||||||
|
},
|
||||||
|
default_value: None,
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
Some(FullTypeFieldsArgs {
|
||||||
|
input_value: InputValue {
|
||||||
|
name: "platform".into(),
|
||||||
|
description: None,
|
||||||
|
type_: TypeRef {
|
||||||
|
kind: Some(__TypeKind::SCALAR),
|
||||||
|
name: Some("Platform".into()),
|
||||||
|
of_type: None,
|
||||||
|
},
|
||||||
|
default_value: None,
|
||||||
|
},
|
||||||
|
}),
|
||||||
]),
|
]),
|
||||||
type_: Some(FullTypeFieldsType {
|
type_: Some(FullTypeFieldsType {
|
||||||
type_ref: TypeRef {
|
type_ref: TypeRef {
|
||||||
@ -149,8 +162,7 @@ impl CacheVolume {
|
|||||||
}),
|
}),
|
||||||
is_deprecated: Some(false),
|
is_deprecated: Some(false),
|
||||||
deprecation_reason: None,
|
deprecation_reason: None,
|
||||||
}
|
}]),
|
||||||
]),
|
|
||||||
input_fields: None,
|
input_fields: None,
|
||||||
interfaces: None,
|
interfaces: None,
|
||||||
enum_values: None,
|
enum_values: None,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user