Skip to content

Commit

Permalink
apply format
Browse files Browse the repository at this point in the history
  • Loading branch information
lxvm committed Sep 21, 2023
1 parent 0deeefb commit e27965d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
14 changes: 11 additions & 3 deletions src/problems/basic_problems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,8 @@ struct IntegralProblem{isinplace, P, F, T, K} <: AbstractIntegralProblem{isinpla
domain::T
p::P
kwargs::K
@add_kwonly function IntegralProblem{iip}(f::AbstractIntegralFunction{iip}, domain, p = NullParameters();
@add_kwonly function IntegralProblem{iip}(f::AbstractIntegralFunction{iip}, domain,

Check warning on line 362 in src/problems/basic_problems.jl

View check run for this annotation

Codecov / codecov/patch

src/problems/basic_problems.jl#L362

Added line #L362 was not covered by tests
p = NullParameters();
kwargs...) where {iip}
warn_paramtype(p)
new{iip, typeof(p), typeof(f), typeof(domain), typeof(kwargs)}(f,

Check warning on line 366 in src/problems/basic_problems.jl

View check run for this annotation

Codecov / codecov/patch

src/problems/basic_problems.jl#L366

Added line #L366 was not covered by tests
Expand All @@ -369,11 +370,18 @@ end

TruncatedStacktraces.@truncate_stacktrace IntegralProblem 1 4

function IntegralProblem(f::AbstractIntegralFunction, domain, p = NullParameters(); kwargs...)
function IntegralProblem(f::AbstractIntegralFunction,

Check warning on line 373 in src/problems/basic_problems.jl

View check run for this annotation

Codecov / codecov/patch

src/problems/basic_problems.jl#L373

Added line #L373 was not covered by tests
domain,
p = NullParameters();
kwargs...)
IntegralProblem{isinplace(f)}(f, domain, p; kwargs...)

Check warning on line 377 in src/problems/basic_problems.jl

View check run for this annotation

Codecov / codecov/patch

src/problems/basic_problems.jl#L377

Added line #L377 was not covered by tests
end

function IntegralProblem(f::AbstractIntegralFunction, lb::B, ub::B, p = NullParameters(); kwargs...) where {B}
function IntegralProblem(f::AbstractIntegralFunction,

Check warning on line 380 in src/problems/basic_problems.jl

View check run for this annotation

Codecov / codecov/patch

src/problems/basic_problems.jl#L380

Added line #L380 was not covered by tests
lb::B,
ub::B,
p = NullParameters();
kwargs...) where {B}
IntegralProblem(f, (lb, ub), p; kwargs...)

Check warning on line 385 in src/problems/basic_problems.jl

View check run for this annotation

Codecov / codecov/patch

src/problems/basic_problems.jl#L385

Added line #L385 was not covered by tests
end
function IntegralProblem(f, args...; kwargs...)
Expand Down
4 changes: 3 additions & 1 deletion test/function_building_error_messages.jl
Original file line number Diff line number Diff line change
Expand Up @@ -629,5 +629,7 @@ BatchIntegralFunction(boop, Float64[])
BatchIntegralFunction(boop, Float64[], max_batch = 20)
BatchIntegralFunction(biip, Float64[], Float64[]) # the 2nd argument should be an ElasticArray
@test_throws SciMLBase.TooFewArgumentsError BatchIntegralFunction(bi1, Float64[])
@test_throws SciMLBase.TooManyArgumentsError BatchIntegralFunction(bitoo, Float64[], Float64[])
@test_throws SciMLBase.TooManyArgumentsError BatchIntegralFunction(bitoo,
Float64[],
Float64[])
@test_throws SciMLBase.TooManyArgumentsError BatchIntegralFunction(bitoo, Float64[])

0 comments on commit e27965d

Please sign in to comment.