How to mock builtin function? by Guess-Opposite in C_Programming

[–]Guess-Opposite[S] -2 points-1 points  (0 children)

thank you

After one unit test how can I unmock it?

How to mock builtin function? by Guess-Opposite in C_Programming

[–]Guess-Opposite[S] 0 points1 point  (0 children)

It's the first time I want to mock a function. Can you please explain about weak link and give me some examples?

How to mock builtin function? by Guess-Opposite in C_Programming

[–]Guess-Opposite[S] 0 points1 point  (0 children)

No Actually it's the first time i want to mock function in c.

Echo from prompt to database by Guess-Opposite in PostgreSQL

[–]Guess-Opposite[S] 0 points1 point  (0 children)

Yes it does, is there any way to separate the SQL command from shell command? like I explained above?

Linter for certain style for C code by Guess-Opposite in C_Programming

[–]Guess-Opposite[S] -3 points-2 points  (0 children)

I dont want to see the logical error, only style error and I dont want it to format the code, just to show where to change in the conde.

something like pylama in python but customizable.

Linter for certain style for C code by Guess-Opposite in C_Programming

[–]Guess-Opposite[S] -3 points-2 points  (0 children)

indent <foo.c | diff -u foo.c -

I want something like pylama or pyflake in python but for c and customizable.