| Line |
Stmt Id |
Pos |
Tree |
Symbol |
Tests |
Code |
|
52
|
5308
|
1828
-
1832
|
Select
|
scala.None
|
|
scala.None
|
|
53
|
4257
|
1871
-
1925
|
Apply
|
org.make.core.post.indexed.PostSearchFilters.apply
|
|
PostSearchFilters.apply(postIds, displayHome, postCountries)
|
|
53
|
2207
|
1866
-
1926
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[org.make.core.post.indexed.PostSearchFilters](PostSearchFilters.apply(postIds, displayHome, postCountries))
|
|
59
|
5391
|
2055
-
2078
|
Select
|
org.make.core.post.indexed.PostSearchQuery.filters
|
org.scalatest.testsuite
|
postSearchQuery.filters
|
|
59
|
3617
|
2030
-
2079
|
Apply
|
org.make.core.post.indexed.PostSearchFilters.buildPostIdsSearchFilter
|
org.scalatest.testsuite
|
PostSearchFilters.this.buildPostIdsSearchFilter(postSearchQuery.filters)
|
|
60
|
1701
|
2116
-
2139
|
Select
|
org.make.core.post.indexed.PostSearchQuery.filters
|
org.scalatest.testsuite
|
postSearchQuery.filters
|
|
60
|
636
|
2087
-
2140
|
Apply
|
org.make.core.post.indexed.PostSearchFilters.buildDisplayHomeSearchFilter
|
org.scalatest.testsuite
|
PostSearchFilters.this.buildDisplayHomeSearchFilter(postSearchQuery.filters)
|
|
61
|
1798
|
2148
-
2203
|
Apply
|
org.make.core.post.indexed.PostSearchFilters.buildPostCountriesSearchFilter
|
org.scalatest.testsuite
|
PostSearchFilters.this.buildPostCountriesSearchFilter(postSearchQuery.filters)
|
|
61
|
3882
|
2179
-
2202
|
Select
|
org.make.core.post.indexed.PostSearchQuery.filters
|
org.scalatest.testsuite
|
postSearchQuery.filters
|
|
62
|
5242
|
2210
-
2210
|
TypeApply
|
scala.Predef.$conforms
|
org.scalatest.testsuite
|
scala.Predef.$conforms[Option[com.sksamuel.elastic4s.requests.searches.queries.Query]]
|
|
62
|
3358
|
2019
-
2217
|
ApplyToImplicitArgs
|
scala.collection.IterableOps.flatten
|
org.scalatest.testsuite
|
scala.`package`.Seq.apply[Option[com.sksamuel.elastic4s.requests.searches.queries.Query]](PostSearchFilters.this.buildPostIdsSearchFilter(postSearchQuery.filters), PostSearchFilters.this.buildDisplayHomeSearchFilter(postSearchQuery.filters), PostSearchFilters.this.buildPostCountriesSearchFilter(postSearchQuery.filters)).flatten[com.sksamuel.elastic4s.requests.searches.queries.Query](scala.Predef.$conforms[Option[com.sksamuel.elastic4s.requests.searches.queries.Query]])
|
|
66
|
5526
|
2321
-
2333
|
Select
|
org.make.core.technical.Pagination.extractInt
|
|
x$1.extractInt
|
|
66
|
3624
|
2290
-
2334
|
Apply
|
scala.Option.fold
|
org.scalatest.testsuite
|
postSearchQuery.offset.fold[Int](0)(((x$1: org.make.core.technical.Pagination.Offset) => x$1.extractInt))
|
|
66
|
2218
|
2318
-
2319
|
Literal
|
<nosymbol>
|
org.scalatest.testsuite
|
0
|
|
69
|
3893
|
2402
-
2446
|
Apply
|
scala.Option.fold
|
org.scalatest.testsuite
|
postSearchQuery.limit.fold[Int](10)(((x$2: org.make.core.technical.Pagination.Limit) => x$2.extractInt))
|
|
69
|
492
|
2433
-
2445
|
Select
|
org.make.core.technical.Pagination.extractInt
|
|
x$2.extractInt
|
|
69
|
1627
|
2429
-
2431
|
Literal
|
<nosymbol>
|
org.scalatest.testsuite
|
10
|
|
72
|
1775
|
2572
-
2583
|
Select
|
org.make.core.Order.sortOrder
|
org.scalatest.testsuite
|
x$3.sortOrder
|
|
72
|
3282
|
2546
-
2609
|
Apply
|
scala.Option.getOrElse
|
org.scalatest.testsuite
|
postSearchQuery.order.map[com.sksamuel.elastic4s.requests.searches.sort.SortOrder](((x$3: org.make.core.Order) => x$3.sortOrder)).getOrElse[com.sksamuel.elastic4s.requests.searches.sort.SortOrder](com.sksamuel.elastic4s.requests.searches.sort.SortOrder.Asc)
|
|
72
|
5249
|
2595
-
2608
|
Select
|
com.sksamuel.elastic4s.requests.searches.sort.SortOrder.Asc
|
org.scalatest.testsuite
|
com.sksamuel.elastic4s.requests.searches.sort.SortOrder.Asc
|
|
74
|
3144
|
2615
-
2700
|
Apply
|
scala.Option.map
|
org.scalatest.testsuite
|
postSearchQuery.sort.map[com.sksamuel.elastic4s.requests.searches.sort.FieldSort](((sort: String) => {
<artifact> val x$1: String = sort;
<artifact> val x$2: com.sksamuel.elastic4s.requests.searches.sort.SortOrder = order;
<artifact> val x$3: Option[Any] @scala.reflect.internal.annotations.uncheckedBounds = com.sksamuel.elastic4s.requests.searches.sort.FieldSort.apply$default$2;
<artifact> val x$4: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = com.sksamuel.elastic4s.requests.searches.sort.FieldSort.apply$default$3;
<artifact> val x$5: Option[com.sksamuel.elastic4s.requests.searches.queries.Query] @scala.reflect.internal.annotations.uncheckedBounds = com.sksamuel.elastic4s.requests.searches.sort.FieldSort.apply$default$4;
<artifact> val x$6: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = com.sksamuel.elastic4s.requests.searches.sort.FieldSort.apply$default$5;
<artifact> val x$7: Option[com.sksamuel.elastic4s.requests.searches.sort.SortMode] @scala.reflect.internal.annotations.uncheckedBounds = com.sksamuel.elastic4s.requests.searches.sort.FieldSort.apply$default$6;
<artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = com.sksamuel.elastic4s.requests.searches.sort.FieldSort.apply$default$8;
<artifact> val x$9: Option[com.sksamuel.elastic4s.requests.searches.sort.NestedSort] @scala.reflect.internal.annotations.uncheckedBounds = com.sksamuel.elastic4s.requests.searches.sort.FieldSort.apply$default$9;
com.sksamuel.elastic4s.requests.searches.sort.FieldSort.apply(x$1, x$3, x$4, x$5, x$6, x$7, x$2, x$8, x$9)
}))
|
|
75
|
3429
|
2656
-
2656
|
Select
|
com.sksamuel.elastic4s.requests.searches.sort.FieldSort.apply$default$4
|
org.scalatest.testsuite
|
com.sksamuel.elastic4s.requests.searches.sort.FieldSort.apply$default$4
|
|
75
|
1784
|
2656
-
2656
|
Select
|
com.sksamuel.elastic4s.requests.searches.sort.FieldSort.apply$default$9
|
org.scalatest.testsuite
|
com.sksamuel.elastic4s.requests.searches.sort.FieldSort.apply$default$9
|
|
75
|
1637
|
2656
-
2656
|
Select
|
com.sksamuel.elastic4s.requests.searches.sort.FieldSort.apply$default$5
|
org.scalatest.testsuite
|
com.sksamuel.elastic4s.requests.searches.sort.FieldSort.apply$default$5
|
|
75
|
2145
|
2656
-
2656
|
Select
|
com.sksamuel.elastic4s.requests.searches.sort.FieldSort.apply$default$2
|
org.scalatest.testsuite
|
com.sksamuel.elastic4s.requests.searches.sort.FieldSort.apply$default$2
|
|
75
|
5533
|
2656
-
2656
|
Select
|
com.sksamuel.elastic4s.requests.searches.sort.FieldSort.apply$default$3
|
org.scalatest.testsuite
|
com.sksamuel.elastic4s.requests.searches.sort.FieldSort.apply$default$3
|
|
75
|
500
|
2656
-
2656
|
Select
|
com.sksamuel.elastic4s.requests.searches.sort.FieldSort.apply$default$6
|
org.scalatest.testsuite
|
com.sksamuel.elastic4s.requests.searches.sort.FieldSort.apply$default$6
|
|
75
|
5060
|
2656
-
2694
|
Apply
|
com.sksamuel.elastic4s.requests.searches.sort.FieldSort.apply
|
org.scalatest.testsuite
|
com.sksamuel.elastic4s.requests.searches.sort.FieldSort.apply(x$1, x$3, x$4, x$5, x$6, x$7, x$2, x$8, x$9)
|
|
75
|
3822
|
2656
-
2656
|
Select
|
com.sksamuel.elastic4s.requests.searches.sort.FieldSort.apply$default$8
|
org.scalatest.testsuite
|
com.sksamuel.elastic4s.requests.searches.sort.FieldSort.apply$default$8
|
|
81
|
3832
|
2801
-
3003
|
Apply
|
scala.Option.flatMap
|
org.scalatest.testsuite
|
maybeFilters.flatMap[com.sksamuel.elastic4s.requests.searches.queries.Query](((filters: org.make.core.post.indexed.PostSearchFilters) => filters.postIds.withFilter(((check$ifrefutable$1: org.make.core.post.indexed.PostIdsSearchFilter) => (check$ifrefutable$1: org.make.core.post.indexed.PostIdsSearchFilter @unchecked) match {
case (postIds: Seq[org.make.core.post.PostId]): org.make.core.post.indexed.PostIdsSearchFilter((postIds @ _)) => true
case _ => false
})).map[com.sksamuel.elastic4s.requests.searches.queries.Query](((x$5: org.make.core.post.indexed.PostIdsSearchFilter) => (x$5: org.make.core.post.indexed.PostIdsSearchFilter @unchecked) match {
case (postIds: Seq[org.make.core.post.PostId]): org.make.core.post.indexed.PostIdsSearchFilter((postIds @ _)) => com.sksamuel.elastic4s.ElasticApi.termsQuery[String](PostElasticsearchFieldNames.postId, postIds.map[String](((x$4: org.make.core.post.PostId) => x$4.value)))
}))))
|
|
82
|
4790
|
2864
-
3003
|
Apply
|
scala.Option.WithFilter.map
|
org.scalatest.testsuite
|
filters.postIds.withFilter(((check$ifrefutable$1: org.make.core.post.indexed.PostIdsSearchFilter) => (check$ifrefutable$1: org.make.core.post.indexed.PostIdsSearchFilter @unchecked) match {
case (postIds: Seq[org.make.core.post.PostId]): org.make.core.post.indexed.PostIdsSearchFilter((postIds @ _)) => true
case _ => false
})).map[com.sksamuel.elastic4s.requests.searches.queries.Query](((x$5: org.make.core.post.indexed.PostIdsSearchFilter) => (x$5: org.make.core.post.indexed.PostIdsSearchFilter @unchecked) match {
case (postIds: Seq[org.make.core.post.PostId]): org.make.core.post.indexed.PostIdsSearchFilter((postIds @ _)) => com.sksamuel.elastic4s.ElasticApi.termsQuery[String](PostElasticsearchFieldNames.postId, postIds.map[String](((x$4: org.make.core.post.PostId) => x$4.value)))
}))
|
|
83
|
2156
|
2946
-
2980
|
Select
|
org.make.core.post.indexed.PostElasticsearchFieldNames.postId
|
org.scalatest.testsuite
|
PostElasticsearchFieldNames.postId
|
|
83
|
5645
|
2994
-
3001
|
Select
|
org.make.core.post.PostId.value
|
org.scalatest.testsuite
|
x$4.value
|
|
83
|
1434
|
2924
-
3003
|
Apply
|
com.sksamuel.elastic4s.api.QueryApi.termsQuery
|
org.scalatest.testsuite
|
com.sksamuel.elastic4s.ElasticApi.termsQuery[String](PostElasticsearchFieldNames.postId, postIds.map[String](((x$4: org.make.core.post.PostId) => x$4.value)))
|
|
83
|
3436
|
2982
-
3002
|
Apply
|
scala.collection.IterableOps.map
|
org.scalatest.testsuite
|
postIds.map[String](((x$4: org.make.core.post.PostId) => x$4.value))
|
|
88
|
5330
|
3108
-
3325
|
Apply
|
scala.Option.flatMap
|
org.scalatest.testsuite
|
maybeFilters.flatMap[com.sksamuel.elastic4s.requests.searches.queries.Query](((filters: org.make.core.post.indexed.PostSearchFilters) => filters.displayHome.withFilter(((check$ifrefutable$2: org.make.core.post.indexed.DisplayHomeSearchFilter) => (check$ifrefutable$2: org.make.core.post.indexed.DisplayHomeSearchFilter @unchecked) match {
case (displayHome: Boolean): org.make.core.post.indexed.DisplayHomeSearchFilter((displayHome @ _)) => true
case _ => false
})).map[com.sksamuel.elastic4s.requests.searches.queries.Query](((x$6: org.make.core.post.indexed.DisplayHomeSearchFilter) => (x$6: org.make.core.post.indexed.DisplayHomeSearchFilter @unchecked) match {
case (displayHome: Boolean): org.make.core.post.indexed.DisplayHomeSearchFilter((displayHome @ _)) => com.sksamuel.elastic4s.ElasticApi.termQuery(PostElasticsearchFieldNames.displayHome, displayHome)
}))))
|
|
89
|
2098
|
3179
-
3325
|
Apply
|
scala.Option.WithFilter.map
|
org.scalatest.testsuite
|
filters.displayHome.withFilter(((check$ifrefutable$2: org.make.core.post.indexed.DisplayHomeSearchFilter) => (check$ifrefutable$2: org.make.core.post.indexed.DisplayHomeSearchFilter @unchecked) match {
case (displayHome: Boolean): org.make.core.post.indexed.DisplayHomeSearchFilter((displayHome @ _)) => true
case _ => false
})).map[com.sksamuel.elastic4s.requests.searches.queries.Query](((x$6: org.make.core.post.indexed.DisplayHomeSearchFilter) => (x$6: org.make.core.post.indexed.DisplayHomeSearchFilter @unchecked) match {
case (displayHome: Boolean): org.make.core.post.indexed.DisplayHomeSearchFilter((displayHome @ _)) => com.sksamuel.elastic4s.ElasticApi.termQuery(PostElasticsearchFieldNames.displayHome, displayHome)
}))
|
|
89
|
2037
|
3227
-
3227
|
Literal
|
<nosymbol>
|
org.scalatest.testsuite
|
true
|
|
90
|
5067
|
3272
-
3311
|
Select
|
org.make.core.post.indexed.PostElasticsearchFieldNames.displayHome
|
org.scalatest.testsuite
|
PostElasticsearchFieldNames.displayHome
|
|
90
|
3353
|
3251
-
3325
|
Apply
|
com.sksamuel.elastic4s.api.QueryApi.termQuery
|
org.scalatest.testsuite
|
com.sksamuel.elastic4s.ElasticApi.termQuery(PostElasticsearchFieldNames.displayHome, displayHome)
|
|
95
|
3279
|
3432
-
3643
|
Apply
|
scala.Option.flatMap
|
org.scalatest.testsuite
|
maybeFilters.flatMap[com.sksamuel.elastic4s.requests.searches.queries.Query](((filters: org.make.core.post.indexed.PostSearchFilters) => filters.countries.withFilter(((check$ifrefutable$3: org.make.core.post.indexed.PostCountriesFilter) => (check$ifrefutable$3: org.make.core.post.indexed.PostCountriesFilter @unchecked) match {
case (countries: Seq[org.make.core.reference.Country]): org.make.core.post.indexed.PostCountriesFilter((countries @ _)) => true
case _ => false
})).map[com.sksamuel.elastic4s.requests.searches.queries.Query](((x$8: org.make.core.post.indexed.PostCountriesFilter) => (x$8: org.make.core.post.indexed.PostCountriesFilter @unchecked) match {
case (countries: Seq[org.make.core.reference.Country]): org.make.core.post.indexed.PostCountriesFilter((countries @ _)) => com.sksamuel.elastic4s.ElasticApi.termsQuery[String](PostElasticsearchFieldNames.country, countries.map[String](((x$7: org.make.core.reference.Country) => x$7.value)))
}))))
|
|
96
|
3692
|
3539
-
3539
|
Literal
|
<nosymbol>
|
org.scalatest.testsuite
|
true
|
|
96
|
5075
|
3497
-
3643
|
Apply
|
scala.Option.WithFilter.map
|
org.scalatest.testsuite
|
filters.countries.withFilter(((check$ifrefutable$3: org.make.core.post.indexed.PostCountriesFilter) => (check$ifrefutable$3: org.make.core.post.indexed.PostCountriesFilter @unchecked) match {
case (countries: Seq[org.make.core.reference.Country]): org.make.core.post.indexed.PostCountriesFilter((countries @ _)) => true
case _ => false
})).map[com.sksamuel.elastic4s.requests.searches.queries.Query](((x$8: org.make.core.post.indexed.PostCountriesFilter) => (x$8: org.make.core.post.indexed.PostCountriesFilter @unchecked) match {
case (countries: Seq[org.make.core.reference.Country]): org.make.core.post.indexed.PostCountriesFilter((countries @ _)) => com.sksamuel.elastic4s.ElasticApi.termsQuery[String](PostElasticsearchFieldNames.country, countries.map[String](((x$7: org.make.core.reference.Country) => x$7.value)))
}))
|
|
97
|
1623
|
3583
-
3618
|
Select
|
org.make.core.post.indexed.PostElasticsearchFieldNames.country
|
org.scalatest.testsuite
|
PostElasticsearchFieldNames.country
|
|
97
|
1722
|
3561
-
3643
|
Apply
|
com.sksamuel.elastic4s.api.QueryApi.termsQuery
|
org.scalatest.testsuite
|
com.sksamuel.elastic4s.ElasticApi.termsQuery[String](PostElasticsearchFieldNames.country, countries.map[String](((x$7: org.make.core.reference.Country) => x$7.value)))
|
|
97
|
3763
|
3620
-
3642
|
Apply
|
scala.collection.IterableOps.map
|
org.scalatest.testsuite
|
countries.map[String](((x$7: org.make.core.reference.Country) => x$7.value))
|
|
97
|
4988
|
3634
-
3641
|
Select
|
org.make.core.reference.Country.value
|
org.scalatest.testsuite
|
x$7.value
|