Skip to content

Conversation

@Rados13
Copy link
Contributor

@Rados13 Rados13 commented Jan 29, 2024

Blocked by this PR

@Rados13 Rados13 requested a review from roznawsk January 29, 2024 10:56
@Rados13 Rados13 self-assigned this Jan 29, 2024
@enforce_keys [:file_path]
defstruct @enforce_keys ++
[]
defstruct @enforce_keys ++ [framerate: nil]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider removing the default nil - this would require JF to always return value, even if it's nil.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not exactly; it would require the user always to pass a value, even if it is adding an audio file component.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we can clean up rooms after each test more easily with a combination of setup and on_exit ?

Maybe its possible to create a function like this:
def cleanup_on_exit do
on_exit(fn _ -> remove_all_rooms())
end

and then call it on setup of each describe block?

I am not sure if this would work, perhaps this discussion might help:
https://elixirforum.com/t/how-to-clean-up-after-each-test-inside-describe/23718

@codecov
Copy link

codecov bot commented Feb 6, 2024

Codecov Report

Merging #52 (8b90d50) into master (62acbae) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #52   +/-   ##
=======================================
  Coverage   82.01%   82.01%           
=======================================
  Files          16       16           
  Lines         228      228           
=======================================
  Hits          187      187           
  Misses         41       41           
Files Coverage Δ
lib/jellyfish/component/file.ex 100.00% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 62acbae...8b90d50. Read the comment docs.

@Rados13 Rados13 requested a review from roznawsk February 6, 2024 11:35
@Rados13 Rados13 merged commit fb21052 into master Feb 7, 2024
@Rados13 Rados13 deleted the File-component-framerate branch February 7, 2024 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants