Skip to content

Commit 15ea38b

Browse files
start porting tests to testitem
1 parent f2a7600 commit 15ea38b

File tree

6 files changed

+537
-425
lines changed

6 files changed

+537
-425
lines changed

GNNGraphs/test/Project.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[deps]
2+
FiniteDifferences = "26cc04aa-876d-5657-8c51-4c34ba976000"
3+
GNNGraphs = "aed8fd31-079b-4b5a-b342-a13352159b8c"
4+
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
5+
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
6+
MLUtils = "f1d291b0-491e-4a28-83b9-f70985020b54"
7+
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
8+
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
9+
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
10+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
11+
TestItems = "1c621080-faea-4a02-84b6-bbd5e436b8fe"

GNNGraphs/test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ tests = [
2929
"datastore",
3030
"gnngraph",
3131
"convert",
32-
"transform",
32+
# "transform",
3333
"operators",
3434
"generate",
3535
"query",

GNNGraphs/test/test_module.jl

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
@testmodule GraphsTestModule begin
2+
using FiniteDifferences: FiniteDifferences
3+
using Reexport: @reexport
4+
using MLUtils: MLUtils
5+
6+
@reexport using Random
7+
@reexport using Statistics
8+
@reexport using LinearAlgebra
9+
@reexport using GNNGraphs
10+
@reexport using Test
11+
@reexport using Graphs
12+
export MLUtils
13+
14+
export ngradient
15+
export GRAPH_TYPES
16+
17+
18+
# Using this until https://github.com/JuliaDiff/FiniteDifferences.jl/issues/188 is fixed
19+
function FiniteDifferences.to_vec(x::Integer)
20+
Integer_from_vec(v) = x
21+
return Int[x], Integer_from_vec
22+
end
23+
24+
function ngradient(f, x...)
25+
fdm = FiniteDifferences.central_fdm(5, 1)
26+
return FiniteDifferences.grad(fdm, f, x...)
27+
end
28+
29+
const GRAPH_TYPES = [:coo, :dense, :sparse]
30+
31+
end # module

GNNGraphs/test/test_utils.jl

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)