Skip to content

Commit 6c3932d

Browse files
committed
format tests
1 parent 2c6e972 commit 6c3932d

File tree

5 files changed

+11
-26
lines changed

5 files changed

+11
-26
lines changed

test/GraphsDFGSummaryTypes.jl

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ function DistributedFactorGraphs.VariableSummary(label::Symbol)
1515
)
1616
end
1717

18-
function DistributedFactorGraphs.VariableSummary(
19-
label::Symbol,
20-
::State{T},
21-
) where {T}
18+
function DistributedFactorGraphs.VariableSummary(label::Symbol, ::State{T}) where {T}
2219
return VariableSummary(
2320
nothing,
2421
label,
@@ -34,10 +31,7 @@ function DistributedFactorGraphs.VariableSkeleton(label::Symbol, args...)
3431
return VariableSkeleton(label)
3532
end
3633

37-
function DistributedFactorGraphs.VariableSkeleton(
38-
label::Symbol,
39-
::State{T},
40-
) where {T}
34+
function DistributedFactorGraphs.VariableSkeleton(label::Symbol, ::State{T}) where {T}
4135
return VariableSkeleton(nothing, label, Set{Symbol}())
4236
end
4337

test/fileDFGTests.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ using UUIDs
1919
1:numNodes,
2020
)
2121
map(v -> setSolvable!(v, Int(round(rand()))), verts)
22-
map(
23-
v -> getState(verts[4], :default).solveInProgress = Int(round(rand())),
24-
verts,
25-
)
22+
map(v -> getState(verts[4], :default).solveInProgress = Int(round(rand())), verts)
2623
map(v -> setSolvedCount!(v, Int(round(10 * rand()))), verts)
2724

2825
# Add some data entries

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ else
125125
@warn "Skipping IncrementalInference driver tests"
126126
end
127127

128-
struct NotImplementedDFG{V,T} <: AbstractDFG{V,T} end
128+
struct NotImplementedDFG{V, T} <: AbstractDFG{V, T} end
129129

130130
@testset "No Interface tests" begin
131131
dfg = NotImplementedDFG{VariableDFG, FactorDFG}()

test/sandbox.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,3 @@ createDfgSessionIfNotExist(dfg)
2525
v1 = addVariable!(dfg, :a, Position{1}; tags = [:POSE], solvable = 0)
2626
v2 = addVariable!(dfg, :b, ContinuousScalar; tags = [:LANDMARK], solvable = 1)
2727
f1 = addFactor!(dfg, [:a; :b], LinearRelative(Normal(50.0, 2.0)); solvable = 0)
28-

test/testBlocks.jl

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ using Test
33
using Dates
44
using Manifolds
55

6-
using DistributedFactorGraphs:
6+
using DistributedFactorGraphs:
77
LabelExistsError,
88
LabelNotFoundError,
99
NoSolverParams,
@@ -292,11 +292,7 @@ function DFGVariableSCA()
292292
solvable = 0,
293293
solverDataDict = Dict(:default => State{TestVariableType1}()),
294294
)
295-
v2 = VariableCompute(
296-
:b,
297-
State{TestVariableType2}();
298-
tags = Set([:VARIABLE, :LANDMARK]),
299-
)
295+
v2 = VariableCompute(:b, State{TestVariableType2}(); tags = Set([:VARIABLE, :LANDMARK]))
300296
v3 = VariableCompute(
301297
:c,
302298
State{TestVariableType2}();
@@ -1308,8 +1304,10 @@ function testGroup!(fg, v1, v2, f0, f1)
13081304
#solves in progress
13091305
@test getSolveInProgress(v1) == 1
13101306
@test getSolveInProgress(f1) == 1
1311-
@test !isSolveInProgress(v2, :default) && v2.solverDataDict[:default].solveInProgress == 0
1312-
@test isSolveInProgress(v1, :default) && v1.solverDataDict[:default].solveInProgress > 0
1307+
@test !isSolveInProgress(v2, :default) &&
1308+
v2.solverDataDict[:default].solveInProgress == 0
1309+
@test isSolveInProgress(v1, :default) &&
1310+
v1.solverDataDict[:default].solveInProgress > 0
13131311

13141312
@test setSolvable!(v1, 1) == 1
13151313
@test getSolvable(v1) == 1
@@ -1392,10 +1390,7 @@ function connectivityTestGraph(
13921390
dfg = T(; graphLabel = :testGraph)
13931391

13941392
vars = vcat(
1395-
map(
1396-
n -> VARTYPE(Symbol("x$n"), State{TestVariableType1}()),
1397-
1:numNodesType1,
1398-
),
1393+
map(n -> VARTYPE(Symbol("x$n"), State{TestVariableType1}()), 1:numNodesType1),
13991394
map(
14001395
n -> VARTYPE(Symbol("x$(numNodesType1+n)"), State{TestVariableType2}()),
14011396
1:numNodesType2,

0 commit comments

Comments
 (0)