Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33095821
utils_test.exs
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
553 B
Referenced Files
None
Subscribers
None
utils_test.exs
View Options
# Pleroma: A lightweight social networking server
# Copyright © 2017-2023 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule
Pleroma.Web.ActivityPub.MRF.UtilsTest
do
use
Pleroma.DataCase
,
async
:
true
alias
Pleroma.Web.ActivityPub.MRF.Utils
describe
"describe_regex_or_string/1"
do
test
"describes regex"
do
assert
"~r/foo/i"
==
Utils
.
describe_regex_or_string
(
~r/foo/i
)
end
test
"returns string as-is"
do
assert
"foo"
==
Utils
.
describe_regex_or_string
(
"foo"
)
end
end
end
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 20, 9:43 AM (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
972261
Default Alt Text
utils_test.exs (553 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment