mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-21 18:08:25 +00:00
Apply autoformat
This commit is contained in:
@ -1,9 +1,11 @@
|
||||
package docspell.query
|
||||
|
||||
import cats.implicits._
|
||||
import munit._
|
||||
|
||||
import docspell.query.FulltextExtract.Result
|
||||
|
||||
import munit._
|
||||
|
||||
class FulltextExtractTest extends FunSuite {
|
||||
|
||||
def findFts(q: String): Result = {
|
||||
|
@ -2,6 +2,7 @@ package docspell.query.internal
|
||||
|
||||
import docspell.query.ItemQuery.Attr
|
||||
import docspell.query.internal.AttrParser
|
||||
|
||||
import munit._
|
||||
|
||||
class AttrParserTest extends FunSuite {
|
||||
|
@ -1,9 +1,11 @@
|
||||
package docspell.query.internal
|
||||
|
||||
import munit._
|
||||
import cats.data.{NonEmptyList => Nel}
|
||||
|
||||
import docspell.query.internal.BasicParser
|
||||
|
||||
import munit._
|
||||
|
||||
class BasicParserTest extends FunSuite {
|
||||
test("single string values") {
|
||||
val p = BasicParser.singleString
|
||||
|
@ -1,9 +1,11 @@
|
||||
package docspell.query.internal
|
||||
|
||||
import munit._
|
||||
import docspell.query.Date
|
||||
import java.time.Period
|
||||
|
||||
import docspell.query.Date
|
||||
|
||||
import munit._
|
||||
|
||||
class DateParserTest extends FunSuite with ValueHelper {
|
||||
|
||||
test("local date string") {
|
||||
|
@ -1,9 +1,11 @@
|
||||
package docspell.query.internal
|
||||
|
||||
import docspell.query.ItemQuery._
|
||||
import munit._
|
||||
import cats.data.{NonEmptyList => Nel}
|
||||
|
||||
import docspell.query.ItemQuery._
|
||||
|
||||
import munit._
|
||||
|
||||
class ExprParserTest extends FunSuite with ValueHelper {
|
||||
|
||||
test("simple expr") {
|
||||
|
@ -2,9 +2,10 @@ package docspell.query.internal
|
||||
|
||||
import cats.implicits._
|
||||
|
||||
import munit._
|
||||
import docspell.query.ItemQueryParser
|
||||
import docspell.query.ItemQuery
|
||||
import docspell.query.ItemQueryParser
|
||||
|
||||
import munit._
|
||||
|
||||
class ItemQueryParserTest extends FunSuite {
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
package docspell.query.internal
|
||||
|
||||
import munit._
|
||||
//import cats.parse.{Parser => P}
|
||||
import docspell.query.ItemQuery.Expr
|
||||
|
||||
import munit._
|
||||
|
||||
class MacroParserTest extends FunSuite {
|
||||
|
||||
test("recognize names shortcut") {
|
||||
|
@ -1,9 +1,10 @@
|
||||
package docspell.query.internal
|
||||
|
||||
import munit._
|
||||
import docspell.query.ItemQuery.{Operator, TagOperator}
|
||||
import docspell.query.internal.OperatorParser
|
||||
|
||||
import munit._
|
||||
|
||||
class OperatorParserTest extends FunSuite {
|
||||
test("operator values") {
|
||||
val p = OperatorParser.op
|
||||
|
@ -1,11 +1,14 @@
|
||||
package docspell.query.internal
|
||||
|
||||
import cats.data.{NonEmptyList => Nel}
|
||||
import docspell.query.ItemQuery._
|
||||
import munit._
|
||||
import docspell.query.Date
|
||||
import java.time.Period
|
||||
|
||||
import cats.data.{NonEmptyList => Nel}
|
||||
|
||||
import docspell.query.Date
|
||||
import docspell.query.ItemQuery._
|
||||
|
||||
import munit._
|
||||
|
||||
class SimpleExprParserTest extends FunSuite with ValueHelper {
|
||||
|
||||
test("string expr") {
|
||||
|
@ -1,8 +1,9 @@
|
||||
package docspell.query.internal
|
||||
|
||||
import java.time.Period
|
||||
|
||||
import docspell.query.Date
|
||||
import docspell.query.ItemQuery._
|
||||
import java.time.Period
|
||||
|
||||
trait ValueHelper {
|
||||
|
||||
|
Reference in New Issue
Block a user