Skip to content

Commit

Permalink
factor code into a test package
Browse files Browse the repository at this point in the history
Former-commit-id: 43221f1
  • Loading branch information
SimonDanisch committed Oct 20, 2020
1 parent ee045b3 commit f6e0d39
Show file tree
Hide file tree
Showing 39 changed files with 11,027 additions and 368 deletions.
11 changes: 11 additions & 0 deletions .JuliaFormatter.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
always_for_in = true
always_use_return = true
import_to_using = true
margin = 110
pipe_to_function_call = true
remove_extra_newlines = true
short_to_long_function_def = true
style = "yas"
whitespace_in_kwargs = false
whitespace_ops_in_indices = true
whitespace_typedefs = false
13 changes: 2 additions & 11 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
authors = ["Simon Danisch", "Julius Krumbiegel"]
name = "AbstractPlotting"
uuid = "537997a7-5e4e-5d89-9595-2241ea00577e"
authors = ["Simon Danisch", "Julius Krumbiegel"]
version = "0.12.17"

[deps]
Expand Down Expand Up @@ -62,7 +62,6 @@ GridLayoutBase = "0.4.1"
ImageIO = "0.2, 0.3"
IntervalSets = "0.3, 0.4, 0.5"
KernelDensity = "0.5, 0.6"
MakieGallery = "0.2.13"
Match = "1.1"
Observables = "0.3.1"
Packing = "0.4"
Expand All @@ -73,12 +72,4 @@ StaticArrays = "0.12"
StatsBase = "0.31, 0.32, 0.33"
StructArrays = "0.3.0, 0.4"
UnicodeFun = "0.4"
julia = "1.0"

[extras]
MakieGallery = "dbd62bd0-c9f5-5087-a2e1-f5c4bb0cec90"
MeshIO = "7269a6da-0436-5bbc-96c2-40638cbb6118"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test", "MeshIO", "MakieGallery"]
julia = "1.3"
5 changes: 0 additions & 5 deletions src/AbstractPlotting.jl
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ include("interaction/interactive_api.jl")
include("documentation/documentation.jl")
include("display.jl")

include("test_database/database.jl")

# help functions and supporting functions
export help, help_attributes, help_arguments

Expand Down Expand Up @@ -202,8 +200,6 @@ export Vec4f0, Vec3f0, Vec2f0, Point4f0, Point3f0, Point2f0
export Vec, Vec2, Vec3, Vec4, Point, Point2, Point3, Point4
export (..), GLNormalUVMesh



export widths, decompose

# building blocks for series recipes
Expand All @@ -221,7 +217,6 @@ export cgrad, available_gradients, showgradients

export Pattern


# default icon for Makie
function icon()
path = joinpath(dirname(pathof(AbstractPlotting)), "..", "assets", "icons")
Expand Down
1 change: 0 additions & 1 deletion src/attributes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@ function get_attribute(dict::ObservableAttributes, key::Symbol)
return convert_attribute(get_value(dict, key), Key{key}())
end


"""
get_attribute(dict::ObservableAttributes, key::Key)
Gets the attribute at `key` as a converted signal
Expand Down
93 changes: 0 additions & 93 deletions src/test_database/database.jl

This file was deleted.

8 changes: 8 additions & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[deps]
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
KernelDensity = "5ab0869b-81aa-558d-bb23-cbf5423bbe9b"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1 change: 1 addition & 0 deletions test/ReferenceTests/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
recorded/
25 changes: 25 additions & 0 deletions test/ReferenceTests/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name = "ReferenceTests"
uuid = "d37af2e0-5618-4e00-9939-d430db56ee94"
authors = ["Simon <[email protected]> and contributors"]
version = "0.1.0"

[deps]
AbstractPlotting = "537997a7-5e4e-5d89-9595-2241ea00577e"
ColorTypes = "3da002f7-5984-5a60-b8a6-cbb66c0b333f"
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"
Downloads = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
FileIO = "5789e2e9-d7fb-5bc7-8068-2c6fae9b9549"
FixedPointNumbers = "53c48c17-4a7d-5ca2-90c5-79b7896eea93"
GeometryBasics = "5c1252a2-5f33-56bf-86c9-59e7332b4326"
Images = "916415d5-f1e6-5110-898d-aaa5f9f070e0"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
MeshIO = "7269a6da-0436-5bbc-96c2-40638cbb6118"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
ghr_jll = "07c12ed4-43bc-5495-8a2a-d5838ef8d533"

[compat]
julia = "1.3"
Loading

0 comments on commit f6e0d39

Please sign in to comment.