Move test specific things
This commit is contained in:
@@ -118,16 +118,6 @@ impl CallInfo {
|
||||
fn parameters(&self) -> &[String] {
|
||||
&self.signature.parameters
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
fn doc(&self) -> Option<&hir::Documentation> {
|
||||
self.signature.doc.as_ref()
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
fn label(&self) -> String {
|
||||
self.signature.to_string()
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
@@ -138,6 +128,17 @@ mod tests {
|
||||
|
||||
use super::*;
|
||||
|
||||
// These are only used when testing
|
||||
impl CallInfo {
|
||||
fn doc(&self) -> Option<hir::Documentation> {
|
||||
self.signature.doc.clone()
|
||||
}
|
||||
|
||||
fn label(&self) -> String {
|
||||
self.signature.to_string()
|
||||
}
|
||||
}
|
||||
|
||||
fn call_info(text: &str) -> CallInfo {
|
||||
let (analysis, position) = single_file_with_position(text);
|
||||
analysis.call_info(position).unwrap().unwrap()
|
||||
|
||||
Reference in New Issue
Block a user