Apply autoformat

This commit is contained in:
Eike Kettner
2021-04-10 16:31:58 +02:00
parent e630786104
commit e1bbc2edf5
45 changed files with 151 additions and 86 deletions

View File

@ -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 = {

View File

@ -2,6 +2,7 @@ package docspell.query.internal
import docspell.query.ItemQuery.Attr
import docspell.query.internal.AttrParser
import munit._
class AttrParserTest extends FunSuite {

View File

@ -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

View File

@ -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") {

View File

@ -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") {

View File

@ -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 {

View File

@ -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") {

View File

@ -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

View File

@ -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") {

View File

@ -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 {