Skip to content
Snippets Groups Projects
Commit 04772365 authored by florian's avatar florian
Browse files

MAINT: Reflect libcaosdb's renaming of utils to utility

parent 700ae5bb
No related branches found
No related tags found
2 merge requests!3TST: Add CI infrastructure for integration testing,!2ENH: Add minimal wrapping of libcaosdb's C interface
Pipeline #10230 failed
......@@ -6,7 +6,7 @@ library.
Manually add a docstring here:
```@docs
CaosDB.Utils.get_env_var(var, default)
CaosDB.Utility.get_env_var(var, default)
```
......
......@@ -23,7 +23,7 @@
module CaosDB
module Utils
module Utility
"""
get_env_var(var[, default])
......@@ -35,7 +35,7 @@ instead.
function get_env_var(var::AbstractString, default::AbstractString = "")
ret = ccall(
(:caosdb_utils_get_env_var, "libccaosdb"),
(:caosdb_utility_get_env_var, "libccaosdb"),
Cstring,
(Cstring, Cstring),
var,
......@@ -46,7 +46,7 @@ function get_env_var(var::AbstractString, default::AbstractString = "")
end
end #Utils
end #Utility
module Connection end
......
......@@ -28,4 +28,4 @@ if haskey(ENV, "SHELL")
else
shell_var = "default"
end
@test CaosDB.Utils.get_env_var("SHELL", "default") == shell_var
@test CaosDB.Utility.get_env_var("SHELL", "default") == shell_var
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment