Skip to content

Commit

Permalink
feat: Added corefunc_homedir_expand.
Browse files Browse the repository at this point in the history
  • Loading branch information
skyzyx committed Dec 17, 2023
1 parent 78ec578 commit 290e1cc
Show file tree
Hide file tree
Showing 21 changed files with 703 additions and 336 deletions.
285 changes: 122 additions & 163 deletions .licenses.cache.json

Large diffs are not rendered by default.

Binary file modified acc-coverage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
217 changes: 115 additions & 102 deletions acc-coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions bats/homedir_expand.bats.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bats
# https://bats-core.readthedocs.io/en/stable/writing-tests.html

@test "corefunc_homedir_expand: attrs" {
run bash -c "tfschema data show -format=json corefunc_homedir_expand | jq -Mrc '.attributes[]'"

[ "$status" -eq 0 ]
[[ ${lines[0]} == '{"name":"id","type":"number","required":false,"optional":false,"computed":true,"sensitive":false}' ]]
[[ ${lines[1]} == '{"name":"path","type":"string","required":true,"optional":false,"computed":false,"sensitive":false}' ]]
[[ ${lines[2]} == '{"name":"value","type":"string","required":false,"optional":false,"computed":true,"sensitive":false}' ]]
}
21 changes: 11 additions & 10 deletions bats/tfschema_listing.bats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@

[ "$status" -eq 0 ]
[[ ${lines[0]} == "corefunc_env_ensure" ]]
[[ ${lines[1]} == "corefunc_homedir_get" ]]
[[ ${lines[2]} == "corefunc_int_leftpad" ]]
[[ ${lines[3]} == "corefunc_str_camel" ]]
[[ ${lines[4]} == "corefunc_str_constant" ]]
[[ ${lines[5]} == "corefunc_str_iterative_replace" ]]
[[ ${lines[6]} == "corefunc_str_kebab" ]]
[[ ${lines[7]} == "corefunc_str_leftpad" ]]
[[ ${lines[8]} == "corefunc_str_pascal" ]]
[[ ${lines[9]} == "corefunc_str_snake" ]]
[[ ${lines[10]} == "corefunc_str_truncate_label" ]]
[[ ${lines[1]} == "corefunc_homedir_expand" ]]
[[ ${lines[2]} == "corefunc_homedir_get" ]]
[[ ${lines[3]} == "corefunc_int_leftpad" ]]
[[ ${lines[4]} == "corefunc_str_camel" ]]
[[ ${lines[5]} == "corefunc_str_constant" ]]
[[ ${lines[6]} == "corefunc_str_iterative_replace" ]]
[[ ${lines[7]} == "corefunc_str_kebab" ]]
[[ ${lines[8]} == "corefunc_str_leftpad" ]]
[[ ${lines[9]} == "corefunc_str_pascal" ]]
[[ ${lines[10]} == "corefunc_str_snake" ]]
[[ ${lines[11]} == "corefunc_str_truncate_label" ]]
}
Loading

0 comments on commit 290e1cc

Please sign in to comment.