pub struct Instance {
pub instance_id: String,
pub repo: String,
pub base_commit: String,
pub problem_statement: String,
pub test_patch: String,
pub fail_to_pass: Value,
pub test_cmd: Option<Value>,
}Expand description
One benchmark instance.
Fields§
§instance_id: Stringe.g. owner__repo-1234.
repo: Stringowner/name.
base_commit: StringThe commit the issue was filed against.
problem_statement: StringThe issue text.
test_patch: StringThe tests that decide the instance, as a patch.
fail_to_pass: ValueTests that must go from failing to passing (a list, or a JSON string of one).
test_cmd: Option<Value>The command that runs the tests, when the dataset gives one.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Instance
impl<'de> Deserialize<'de> for Instance
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Instance
impl RefUnwindSafe for Instance
impl Send for Instance
impl Sync for Instance
impl Unpin for Instance
impl UnsafeUnpin for Instance
impl UnwindSafe for Instance
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more